This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 1/3] language-specific read_var_value for Ada renamings
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 1 Mar 2012 14:58:27 -0800
- Subject: Re: [RFA 1/3] language-specific read_var_value for Ada renamings
- References: <1330546034-27156-1-git-send-email-brobecker@adacore.com> <1330546034-27156-2-git-send-email-brobecker@adacore.com> <87vcmodrqr.fsf@fleche.redhat.com>
> I think the patch is fine, given that we've already gone pretty far down
> this road.
Awesome, thanks for looking at the patch.
> I wonder whether it would be possible to deal with the renaming when
> reading symbols. [...]
I have thought about this many times in the past. But I am not sure how
to do this. At least some of them seem really hard to do. For instance,
this issue with renamings: It would seem to me that the way to go would
be to translate the textual expression from the symbol name into some
kind of location expression. A little like the DWARF locations, but with
possible symbol lookups, array subscripting, taking record components,
etc.
In this case, I'd rather continue pushing for standard DWARF, and just
get rid of the encoding altogether...
--
Joel