only force symbol lookups with local variables on hppa

Mike Frysinger vapier@gentoo.org
Tue Aug 22 18:34: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:
> > On Sunday 20 August 2006 09:57, Daniel Jacobowitz wrote:
> > > As a followup, there are several better options:
> >
> > 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: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060822/7014ee6b/attachment.sig>
-------------- 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/20060822/7014ee6b/attachment.bin>


More information about the Gdb-patches mailing list