This is the mail archive of the
mailing list for the GDB project.
Re: Question, does gdb have a command can show the file and line info of a address like "addr2line"
I try to info line but forgot the "*".
Thanks for your help. :)
On Wed, Feb 8, 2012 at 21:00, Jan Kratochvil <firstname.lastname@example.org> wrote:
> 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>.