Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gdb [2019/07/24 11:28] – rpjday | gdb [2019/07/25 11:24] (current) – [TO DO] rpjday | ||
---|---|---|---|
Line 6: | Line 6: | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ===== TO DO ===== | ||
+ | |||
+ | * frontends (gdbgui) | ||
+ | * debug running process | ||
+ | * kgdb | ||
+ | * gdbserver | ||
+ | |||
+ | ===== .gdbinit ===== | ||
+ | |||
+ | < | ||
+ | SYNOPSIS | ||
+ | / | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | DESCRIPTION | ||
+ | These files contain GDB commands to automatically execute | ||
+ | | ||
+ | of commands, described in the GDB manual in node " | ||
+ | shell command "info -f gdb -n Sequences" | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | / | ||
+ | | ||
+ | user specified GDB option " | ||
+ | GDB manual in node " | ||
+ | | ||
+ | |||
+ | | ||
+ | User initialization file. It is executed unless user | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | be enabled with GDB security command "set auto-load | ||
+ | | ||
+ | File in the Current Directory" | ||
+ | gdb -n 'Init File in the Current Directory'" | ||
+ | </ | ||
+ | |||
+ | [[https:// | ||
+ | |||
===== Info ===== | ===== Info ===== | ||
Line 26: | Line 73: | ||
===== Commands ===== | ===== Commands ===== | ||
+ | |||
+ | ==== info ==== | ||
+ | |||
+ | < | ||
+ | (gdb) info sources | ||
+ | (gdb) info source | ||
+ | (gdb) info files | ||
+ | (gdb) info functions | ||
+ | </ | ||
+ | |||
+ | ==== Listing ==== | ||
+ | |||
+ | < | ||
+ | (gdb) l[ist] | ||
+ | (gdb) l 10 | ||
+ | (gdb) l 10,12 | ||
+ | (gdb) l - | ||
+ | (gdb) < | ||
+ | </ | ||
+ | |||
+ | ==== Misc ==== | ||
+ | |||
+ | < | ||
+ | (gdb) where | ||
+ | (gdb) f[rame] | ||
+ | </ |