This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: function address from object file?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]