How to use the GDB (Gnu Debugger) and OpenOCD for microcontroller debugging – from the terminal?

As I remember it I had some trouble with the straight load command too, so I switched to “flash write_image erase my_project.hex 0 ihex” .. obviously I was using hex files but it looks like elf files should work to, see http://openocd.org/doc/html/Flash-Commands.html … the good thing about this command is it also erases only the … Read more

Can I use gdb to skip a line without having to type line numbers?

jump +1 jumps to the next line line i.e. skipping the current line. You may also want to combine it with tbreak +1 to set a temporary breakpoint at the jump target. See http://sourceware.org/gdb/current/onlinedocs/gdb/Specify-Location.html for more ways of expressing locations with gdb. Note that without a breakpoint gdb is likely to continue execution normally instead … Read more

How to use gdb with input redirection?

~$ gdb <executable> GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show copying” and “show warranty” for details. This … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)