From: Daniel Jacobowitz <drow@false.org>
To: Jacob Potter <jdpotter@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Rewrite data cache and use for stack access.
Date: Tue, 30 Jun 2009 21:28:00 -0000 [thread overview]
Message-ID: <20090630212749.GA31857@caradoc.them.org> (raw)
In-Reply-To: <7e6c8d660906301416k6fac6853k1d295bd5feae3283@mail.gmail.com>
On Tue, Jun 30, 2009 at 02:16:09PM -0700, Jacob Potter wrote:
> > * I'd find it helpful if any performance improvements were separated
> > out from stack caching. Could you do that?
> >
>
> I've split it into two patch files. Should I be submitting them as
> completely separate [RFA]s?
Yes, please - this just simplifies review.
> > * Have you thought at all about non-stop or multi-process debugging?
> > If we have a data cache which is specifically for stack accesses,
> > maybe we should associate it with the thread.
>
> I don't think we need to associate the cache with a particular thread,
> since the threads' stacks will be in separate parts of the address
> space anyway; multiple caches will just add more stuff to keep track
> of.
You're right - but multi-process is another story; a memory address
requires a process context.
> For non-stop debugging, it seems like the correct thing to do would be
> to clear the cache between each _command_ the user gives. It's
> conceivable that a running thread might modify a value on a stopped
> thread's stack, and we don't want to hide that by keeping the cache
> between two backtrace commands. This may already happen; I'll double
> check.
Is this really necessary? It defeats a lot of the benefit of the
caching, I'd think.
> > * We'd prefer that new functions take a target_ops; are the
> > current_target versions of read_stack and target_stack necessary?
>
> They're called from value_at, which doesn't seem to get information
> about the target; is there a way to avoid using current_target there?
There probably isn't. Let's push the use of current_target up into the
call site, instead of creating more 'bad' callees.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2009-06-30 21:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 19:01 Jacob Potter
2009-06-29 19:32 ` Daniel Jacobowitz
2009-06-29 19:58 ` Michael Snyder
2009-06-29 20:03 ` Daniel Jacobowitz
2009-06-30 21:16 ` Jacob Potter
2009-06-30 21:28 ` 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=20090630212749.GA31857@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=jdpotter@google.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