This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: function address from object file?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Roopesh Kohad <roopesh dot kohad at gmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 1 Mar 2005 09:26:09 -0500
- Subject: Re: function address from object file?
- References: <1a223dc60503010114bbb95fd@mail.gmail.com>
On Tue, Mar 01, 2005 at 02:44:30PM +0530, Roopesh Kohad wrote:
> $ gcc -c -g -o a.o a.c
> $ gdb a.o
> (gdb) info file
Obviously this isn't the whole session, since you've skipped the
version string from GDB.
> Symbols from "/tmp/a.o".
> Local exec file:
> `/tmp/a.o', file type pe-i386.
> Entry point: 0x0
> 0x00000000 - 0x00000070 is .text
Support for debugging unlinked objects was added to GDB a couple
releases ago - for ELF. I do not know if it will work for pe-i386
or not.
--
Daniel Jacobowitz
CodeSourcery, LLC