]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - misc/gdb/README
vim: xptemplate: add snippets for go
[config/dotfiles.git] / misc / gdb / README
1 README
2 ======
3
4 Useful gdb commands.
5
6
7 `info files`
8 ------------
9
10 List all (ELF) sections of the running program including address ranges.
11
12 Example output:
13
14     (gdb) info files
15     Symbols from "/bin/ls".
16     Unix child process:
17             Using the running image of child Thread 0x7ffff7fe87a0 (LWP 25058).
18             While running this, GDB does not access memory from...
19     Local exec file:
20             `/bin/ls', file type elf64-x86-64.
21             Entry point: 0x404880
22             0x0000000000400238 - 0x0000000000400254 is .interp
23             0x0000000000400254 - 0x0000000000400274 is .note.ABI-tag
24             0x0000000000400274 - 0x0000000000400298 is .note.gnu.build-id
25             [...]
26             0x000000000061afe8 - 0x000000000061b348 is .got.plt
27             0x000000000061b360 - 0x000000000061b57c is .data
28             0x000000000061b580 - 0x000000000061c300 is .bss
29             0x00007ffff7ddd1c8 - 0x00007ffff7ddd1ec is .note.gnu.build-id in /lib64/ld-linux-x86-64.so.2
30             0x00007ffff7ddd1f0 - 0x00007ffff7ddd2a8 is .hash in /lib64/ld-linux-x86-64.so.2
31             0x00007ffff7ddd2a8 - 0x00007ffff7ddd380 is .gnu.hash in /lib64/ld-linux-x86-64.so.2
32             0x00007ffff7ddd380 - 0x00007ffff7ddd608 is .dynsym in /lib64/ld-linux-x86-64.so.2
33             0x00007ffff7ddd608 - 0x00007ffff7ddd784 is .dynstr in /lib64/ld-linux-x86-64.so.2
34             [...]