Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Keith Seitz <keiths@redhat.com>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [RFC] Revisit PR 16253 ("Attempt to use a type name...")
Date: Tue, 16 Jun 2015 21:02:00 -0000	[thread overview]
Message-ID: <CADPb22QeRs=g=fK0VjUT8Rknp-gpZHd0aSP8=h8AtPe15qX+Aw@mail.gmail.com> (raw)
In-Reply-To: <001a1135a192a92e3f0518a643d3@google.com>

On Tue, Jun 16, 2015 at 12:54 PM, Doug Evans <dje@google.com> wrote:
>...
> btw,
>
> I think I have a simple way to get the perf back with the original
> patch, but it involves (I think, TBD) "breaking"
> psyms/gold-generated-gdb-index the same way gdb-generated-gdb-index
> is "broken": PR 17387.
> Namely, only record one static psym, the theory being
> if one is not in a context where static symbol my_foo is defined,
> gdb is going to (essentially) pick a random one so why record them all?
> The catch is that, e.g., "info types foo" uses psyms/gdb-index too
> so if we went this route we'd either have to accept the breakage
> that .gdb_index introduced (PR 17387) or rewrite "info types, etc.,
> to work differently: it'd have to scan the debug info, but how important
> is a fast "info types"? One could employ various kinds of caching
> to speed things up a bit.

Sorry for the followup.

Another way would be to have two different kinds of lookup.
IOW, record all the static versions of a symbol in the index,
but (1) only use one of them (the first?) for some lookups and
(2) use all of them for "info types"-like lookups.

It's still substandard, I think, as the symbol we use
for (1) may have the wrong domain, and we should really just
fix gdb-generated-gdb-index for 17387,
and record the domain in the index to fix the perf issue.

OTOH, as with your v2 patch for 16253, it's an incremental
approach.


  reply	other threads:[~2015-06-16 21:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-16 17:54 Doug Evans
2015-06-16 21:02 ` Doug Evans [this message]
2015-06-17 15:46 ` Keith Seitz
  -- strict thread matches above, loose matches on Subject: below --
2015-06-24 23:02 Doug Evans
2015-06-25 18:26 ` Keith Seitz
2015-06-24 16:54 Doug Evans
2015-06-11 18:57 Keith Seitz
2015-06-16 16:29 ` Jan Kratochvil
2015-06-17 12:34 ` Jan Kratochvil
2015-06-17 15:50   ` Keith Seitz
2015-06-23 18:39     ` Keith Seitz
2015-06-23 19:53       ` Jan Kratochvil

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='CADPb22QeRs=g=fK0VjUT8Rknp-gpZHd0aSP8=h8AtPe15qX+Aw@mail.gmail.com' \
    --to=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=keiths@redhat.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