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:17] – rpjday | gdb [2019/07/25 11:24] (current) – [TO DO] rpjday | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Overview ===== | ===== Overview ===== | ||
- | GDB stuff, of course. | + | GDB stuff, of course |
Links: | Links: | ||
Line 7: | Line 7: | ||
* [[https:// | * [[https:// | ||
- | ===== Commands | + | ===== TO DO ===== |
- | ==== Info ==== | + | * 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 ===== | ||
+ | |||
+ | Packages: | ||
+ | |||
+ | < | ||
+ | $ rpm -q gdb gdb-headless | ||
+ | gdb-8.3-6.fc30.x86_64 | ||
+ | gdb-headless-8.3-6.fc30.x86_64 | ||
+ | $ | ||
+ | </ | ||
< | < | ||
Line 16: | Line 70: | ||
... | ... | ||
$ | $ | ||
+ | </ | ||
+ | |||
+ | ===== 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] | ||
</ | </ |