Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: David Carlton <carlton@math.stanford.edu>
To: gdb-patches@sources.redhat.com
Cc: Jim Blandy <jimb@red-bean.com>, Elena Zannoni <ezannoni@redhat.com>
Subject: Re: [rfa] clean up lookup_symbol_aux
Date: Mon, 07 Oct 2002 10:43:00 -0000	[thread overview]
Message-ID: <ro1n0pqm9fj.fsf@jackfruit.Stanford.EDU> (raw)
In-Reply-To: <ro1d6qsse6t.fsf@jackfruit.Stanford.EDU>

On 02 Oct 2002 14:50:34 -0700, David Carlton <carlton@math.Stanford.EDU> said:

> * I decided to reorder the search order: in the non-HPUXHPPA case, it
>   makes sense to me to search global psymtabs before searching minimal
>   symbols.  The theory there is that you should look for symbols with
>   debugging information before looking for symbols without debugging
>   information; also it seems to me that the current code might, in
>   some situations, find a static symbol via searching the minsyms
>   before it finds a global symbol via searching the psymtabs, which is
>   definitely a bad outcome.

Actually, I didn't understand lookup_minimal_symbol well enough when I
wrote the above; now I no longer think that the existing code might
find a static symbol via minsyms before a global symbol via psymtabs.

I still think that it would be a good idea to search psymtabs before
searching minimal symbols, but I prefer that only because I think it's
slightly cleaner, not because of any correctness reasons.  (And I'm
not sure which side efficiency concerns land on in this situation;
it's kind of complicated.  For all I know, it might even be more
efficient to move the minimal symbol search before the symtab search!)

And, of course, I still think that the general idea of cleaning up
lookup_symbol_aux and combining duplicate code is a good one.  I'm
just more agnostic about what order the resulting patch should call
lookup_symbol_aux_symtabs, lookup_symbol_aux_psymtabs, and
lookup_symbol_aux_minsyms in.

David Carlton
carlton@math.stanford.edu


  reply	other threads:[~2002-10-07 17:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-02 14:50 David Carlton
2002-10-07 10:43 ` David Carlton [this message]
2002-10-30 15:08 ` David Carlton
2002-11-03 16:05   ` Elena Zannoni
2002-11-03 16:39     ` Joel Brobecker
2002-11-04 16:21     ` David Carlton
2002-11-04 17:25       ` Elena Zannoni
2002-11-04 20:40         ` David Carlton
2002-11-05 12:48           ` David Carlton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ro1n0pqm9fj.fsf@jackfruit.Stanford.EDU \
    --to=carlton@math.stanford.edu \
    --cc=ezannoni@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@red-bean.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox