5.8. Files and Shared Libraries

You can find out information about the currently loaded file, its type, ELF segments, memory addresses and other things. The following command displays such information about the sum program.

(gdb) info files Symbols from "/home/rr/5/sum". Unix child process: Using the running image of child process 1860. While running this, GDB does not access memory from... Local exec file: `/home/rr/5/sum', file type elf32-i386. Entry point: 0x8048390 0x080480f4 - 0x08048107 is .interp 0x08048108 - 0x08048128 is .note.ABI-tag 0x08048128 - 0x08048160 is .hash 0x08048160 - 0x080481f0 is .dynsym 0x080481f0 - 0x0804828b is .dynstr 0x0804828c - 0x0804829e is .gnu.version 0x080482a0 - 0x080482d0 is .gnu.version_r 0x080482d0 - 0x080482d8 ...

Get Linux Development Platform: Configuring, Using, and Maintaining a Complete Programming Environment, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.