This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: finding a function with address
- To: greg at mcgary dot org
- Subject: Re: finding a function with address
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Tue, 6 Feb 2001 11:37:17 -0500 (EST)
- CC: jtc at redback dot com, gdb at sources dot redhat dot com
- References: <Pine.SUN.3.91.1010205112849.5862O-100000@is> <mslmrlm4g5.fsf@mcgary.org>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> From: Greg McGary <greg@mcgary.org>
> Date: 05 Feb 2001 10:20:58 -0700
>
> Eli Zaretskii <eliz@is.elta.co.il> writes:
>
> > In other words, there doesn't seem to be a way of getting a symbol
> > name given its address, unlike "info symbol" promised?
>
> I always get symbol names like so:
>
> (gdb) p/a 0x4b940
>
> However, if the `info symbol ADDR' doesn't work, then this might not
> work either.
Thanks for the tip. Amazingly enough, "p/a" does work.
It's probably a bug. I will debug it.