From: Michael Eager <eager@eagercon.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sources.redhat.com
Subject: Re: frame cache
Date: Tue, 24 Jul 2007 18:45:00 -0000 [thread overview]
Message-ID: <46A648B9.3090201@eagercon.com> (raw)
In-Reply-To: <20070724181933.GA18953@caradoc.them.org>
Daniel Jacobowitz wrote:
> On Tue, Jul 24, 2007 at 10:35:59AM -0700, Michael Eager wrote:
>> I don't see any links to the <target>_frame_cache in frame_info.
>> I don't see anything in frame.c which looks like it searches
>> for the correct <target>_frame_cache. Can you point me at the
>> right place?
>
> Sure:
>
> /* The frame's low-level unwinder and corresponding cache. The
> low-level unwinder is responsible for unwinding register values
> for the previous frame. The low-level unwind methods are
> selected based on the presence, or otherwise, of register unwind
> information such as CFI. */
> void *prologue_cache;
> const struct frame_unwind *unwind;
I missed that prologue_cache ==> <target>_frame_cache.
I only saw that it was set by sentinel_frame_cache, but
now I see that it is passed to frame_unwind_find_by_frame()
and on from there. (Bad void pointer, bad, bad.)
>> When I put debugging code in <target>_analyze_prologue(), I see
>> that it is called over and over while executing a "next" command.
>> All those bits going back and forth over the serial line to the
>> target.
>
> I like to use GDB's built in data caching and/or set
> trust-readonly-sections. I hope we can make the data caching more
> aggressive by default at some point.
Perhaps you or someone could write some documentation for this? :-)
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
next prev parent reply other threads:[~2007-07-24 18:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 17:08 Michael Eager
2007-07-24 17:14 ` Michael Eager
2007-07-24 17:36 ` Daniel Jacobowitz
2007-07-24 18:19 ` Michael Eager
2007-07-24 18:34 ` Daniel Jacobowitz
2007-07-24 18:34 ` Mark Kettenis
2007-07-24 17:17 ` Daniel Jacobowitz
2007-07-24 18:10 ` Michael Eager
2007-07-24 18:22 ` Daniel Jacobowitz
2007-07-24 18:45 ` Michael Eager [this message]
2007-07-24 18:45 ` Mark Kettenis
2007-07-24 19:08 ` Michael Eager
2007-07-25 2:18 ` Paul Koning
2007-07-27 9:18 ` Wenbo Yang
2007-07-30 22:01 ` Michael Eager
2007-07-30 23:07 ` Mark Kettenis
2007-07-31 3:51 ` Wenbo Yang
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=46A648B9.3090201@eagercon.com \
--to=eager@eagercon.com \
--cc=drow@false.org \
--cc=gdb@sources.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