This is the mail archive of the
mailing list for the GDB project.
Re: How to show the file being executed?
- From: "Alfred M. Szmidt" <ams at gnu dot org>
- To: Stefano Sabatini <stefano dot sabatini-lala at poste dot it>
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 20 Feb 2010 07:37:22 -0500
- Subject: Re: How to show the file being executed?
- References: <20100220122449.GA9150@geppetto>
- Reply-to: ams at gnu dot org
(gdb) info target
Symbols from "/home/stefano/src/PROGRAM".
Unix child process:
Using the running image of child Thread 0xb5f33b70 (LWP 8998).
While running this, GDB does not access memory from...
Local exec file:
`/home/stefano/src/PROGRAM', file type elf32-i386.
Entry point: 0x804bc70
0x08048134 - 0x08048147 is .interp
0x08048148 - 0x08048168 is .note.ABI-tag
0x08048168 - 0x0804818c is .note.gnu.build-id
There is some way to show *only* this information?, otherwise I suggest
to implement a show file command.
You can use readelf to get most of that information.