This is the mail archive of the gdb@sourceware.org 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: Question, does gdb have a command can show the file and line info of a address like "addr2line"


On Wed, 08 Feb 2012 13:57:03 +0100, Hui Zhu wrote:
> GDB can get the symbol info with command "info symbol 0x400570".
> Does gdb have a command can show the file and line info of a address
> like "addr2line"?

(gdb) info line *0x454d40
Line 27 of "../../gdb/gdb.c" starts at address 0x454d40 <main> and ends at 0x454d45 <main+5>.


Regards,
Jan


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