Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Jean-Marc Saffroy <saffroy@gmail.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] gdb script performance
Date: Tue, 05 Dec 2006 21:02:00 -0000	[thread overview]
Message-ID: <20061205210231.GA27719@nevyn.them.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0611301419070.9872@erda.mds>

On Thu, Nov 30, 2006 at 02:56:54PM +0100, Jean-Marc Saffroy wrote:
> For the PC cache, I guess that just about any address can be passed, so I 
> doubt there is much room for improvement (except maybe a cache with more 
> than one entry, should it be useful in some cases, but now it's probably 
> unneeded).

We shouldn't need to cache at all.  I think the right representation
would allow us to look up a single PC and find the best psymtab based
on that PC without having to loop over psymtabs; this requires a pretty
big change to the way we store things, since unfortunately I don't
think we can assume the address ranges of psymtabs are even remotely
sane (multiple psymtabs may overlap, for instance, and it's past time
we started recording DW_AT_ranges discontiguous range information).

Not sure what a good data structure for that would look like.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2006-12-05 21:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30  0:33 Jean-Marc Saffroy
2006-11-30  1:04 ` Jim Blandy
2006-11-30 13:19   ` Jean-Marc Saffroy
2006-11-30 21:54     ` Michael Snyder
2006-11-30  3:13 ` Daniel Jacobowitz
2006-11-30 13:57   ` Jean-Marc Saffroy
2006-12-05 21:02     ` Daniel Jacobowitz [this message]

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=20061205210231.GA27719@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=saffroy@gmail.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