[patch ping] change lookup order of $localvars to happen before symbol tables

Mike Frysinger vapier@gentoo.org
Thu Sep 14 05:01:00 GMT 2006


On Monday 21 August 2006 21:35, Daniel Jacobowitz wrote:
> On Mon, Aug 21, 2006 at 09:32:29PM -0400, Mike Frysinger wrote:
> > hmm, is there a spec somewhere that says what order symbols need to be
> > resolved ?  how about an alternative option:
> >  - in write_dollar_variable(), if the symbol starts with a '$', we first
> > try to look it up via lookup_internalvar() ... if that fails, we fall
> > back to lookup_symbol() and lookup_minimal_symbol() and then jump back to
> > the lookup_internalvar() ...
>
> Hmm... that's also an interesting option.  I have no opinion.

here's a stab at it then ... i'm sure others have better ideas :)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-lookup-internal-first.patch
Type: text/x-diff
Size: 2899 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060914/85cbdb81/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060914/85cbdb81/attachment.sig>


More information about the Gdb-patches mailing list