Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
dt_openocd [2014/02/16 22:18] yusa |
dt_openocd [2014/02/16 22:23] yusa |
||
---|---|---|---|
Line 158: | Line 158: | ||
If you want to debug your hardware more comfortable you are able to use gdb. | If you want to debug your hardware more comfortable you are able to use gdb. | ||
- | You should use the gdb provided by your Toolchain. For example mipsel-none-elf-gdb. | + | You should use the gdb provided by your Toolchain. For example mipsel-none-elf-gdb for a MIPS architecture. |
<code> | <code> | ||
Line 197: | Line 197: | ||
</code> | </code> | ||
- | or walk step by step through your source code: | + | Walk step by step through your source code |
<code> | <code> | ||
- | (gdb) next) | + | (gdb) next |
</code> | </code> | ||
+ | or print variable content | ||
+ | |||
+ | <code> | ||
+ | (gdb) print [var] | ||
+ | </code> | ||