This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: useful `info address'?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Mark Kettenis <kettenis at chello dot nl>
- Cc: Andrew Cagney <ac131313 at redhat dot com>, gdb at sources dot redhat dot com
- Date: Sun, 1 Jun 2003 16:29:39 -0400
- Subject: Re: useful `info address'?
- References: <3ED923FB.6090005@redhat.com> <86he7acepf.fsf@elgar.kettenis.dyndns.org>
On Sun, Jun 01, 2003 at 11:46:52AM +0200, Mark Kettenis wrote:
> Andrew Cagney <ac131313@redhat.com> writes:
>
> > Um,
> >
> > Having only just learn't of `info address', I'm finding that it isn't
> > very useful. Sigh:
> >
> > (gdb) info address b
> > Symbol "b" is a variable with complex or multiple locations (DWARF2).
>
> This is progress :-(. Abviously "info address" should try to evaluate
> the location expression.
Yes, precisely. The message was deemed more useful than
incorrekt/incomplet information. Just need to hook in either a
pretty-printer or location expression dumper.
I'm waiting until after DW_OP_piece to do this, so that we'll be able
to say something like:
"b" is a variable with multiple locations:
4 bytes at 0x10002030
4 bytes in $r13
8 bytes in $f12
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer