From: Michael Snyder <Michael.Snyder@palmsource.com>
To: Jean-Marc Saffroy <saffroy@gmail.com>
Cc: Jim Blandy <jimb@codesourcery.com>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] gdb script performance
Date: Thu, 30 Nov 2006 21:54:00 -0000 [thread overview]
Message-ID: <1164923684.14460.17.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.64.0611301410420.9872@erda.mds>
On Thu, 2006-11-30 at 14:18 +0100, Jean-Marc Saffroy wrote:
> On Wed, 29 Nov 2006, Jim Blandy wrote:
>
> > When the user changes the symbol file (or when GDB notices it has
> > changed and automatically re-reads it), the section and symtab objects
> > your static variables are pointing to will be freed. If you then get a
> > spurious cache hit, you'll hand out a pointer to garbage. So you'll
> > need to invalidate the cache whenever the section or symtab get freed.
>
> Yes, that's what I meant when I said that hooks for invalidating the
> caches are missing, but I haven't looked yet where they should be added.
>
> BTW I don't know if the test suite would catch this; if not, a test should
> probably be added.
A test would be a good idea, yes.
BTW, I think you have a worthwhile idea here,
and I hope you continue to refine it. There
are some serious performance issues in gdb.
Michael
next prev parent reply other threads:[~2006-11-30 21:54 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 [this message]
2006-11-30 3:13 ` Daniel Jacobowitz
2006-11-30 13:57 ` Jean-Marc Saffroy
2006-12-05 21:02 ` Daniel Jacobowitz
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=1164923684.14460.17.camel@localhost.localdomain \
--to=michael.snyder@palmsource.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@codesourcery.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