X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=misc%2Fgdb%2FREADME;fp=misc%2Fgdb%2FREADME;h=dd2cdbe535fc8c9c54f55db3b3f3d534b7f33648;hp=0000000000000000000000000000000000000000;hb=8ccb9052dca010073caa5df18c71e6c2a7200fcc;hpb=54e498cc877f4e05b5788b0a886ee02546f41a47 diff --git a/misc/gdb/README b/misc/gdb/README new file mode 100644 index 0000000..dd2cdbe --- /dev/null +++ b/misc/gdb/README @@ -0,0 +1,34 @@ +README +====== + +Useful gdb commands. + + +`info files` +------------ + +List all (ELF) sections of the running program including address ranges. + +Example output: + + (gdb) info files + Symbols from "/bin/ls". + Unix child process: + Using the running image of child Thread 0x7ffff7fe87a0 (LWP 25058). + While running this, GDB does not access memory from... + Local exec file: + `/bin/ls', file type elf64-x86-64. + Entry point: 0x404880 + 0x0000000000400238 - 0x0000000000400254 is .interp + 0x0000000000400254 - 0x0000000000400274 is .note.ABI-tag + 0x0000000000400274 - 0x0000000000400298 is .note.gnu.build-id + [...] + 0x000000000061afe8 - 0x000000000061b348 is .got.plt + 0x000000000061b360 - 0x000000000061b57c is .data + 0x000000000061b580 - 0x000000000061c300 is .bss + 0x00007ffff7ddd1c8 - 0x00007ffff7ddd1ec is .note.gnu.build-id in /lib64/ld-linux-x86-64.so.2 + 0x00007ffff7ddd1f0 - 0x00007ffff7ddd2a8 is .hash in /lib64/ld-linux-x86-64.so.2 + 0x00007ffff7ddd2a8 - 0x00007ffff7ddd380 is .gnu.hash in /lib64/ld-linux-x86-64.so.2 + 0x00007ffff7ddd380 - 0x00007ffff7ddd608 is .dynsym in /lib64/ld-linux-x86-64.so.2 + 0x00007ffff7ddd608 - 0x00007ffff7ddd784 is .dynstr in /lib64/ld-linux-x86-64.so.2 + [...]