From: Jim Ingham <jingham@apple.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: Revamped frame chain, useful for PPC?
Date: Fri, 10 Jan 2003 18:20:00 -0000 [thread overview]
Message-ID: <0D1EC560-24C8-11D7-BA2B-00039379E320@apple.com> (raw)
In-Reply-To: <3E1EECB9.9060900@redhat.com>
Andrew,
Yeah, what I did was actually pretty minimal; I just added an mi
command that walked the stack and returned frame & pc pairs. It
operated outside of the ordinary gdb frame chain. This is inefficient
in that we don't get to use ANY of this work if the user asks for
something higher up on the stack, but was good enough for our purposes.
PB runs the new mi command when it gets a stopped message, and doesn't
refetch any stack frames that match the return. Since most of the time
people are interested in seeing the stack, but don't really visit
anything higher that the last couple of frames, we never end up
constructing the real gdb frame chain until something actually changes.
I have been watching your work to provide a better way of doing this,
and look forward to being able to use it.
We are in the throes or planning for our next release, which means many
meetings, no real work... Once we have decided the big items, I will
arrange time to incorporate this (it should be a fairly small piece of
work.)
Thanks for pointing this out.
Jim
On Friday, January 10, 2003, at 07:54 AM, Andrew Cagney wrote:
> Jim,
>
> Long long ago you mentioned that, to improve performance, you hacked
> the PPC code and core GDB so that it could do a light weight frame
> chain. That is, instead of a full frame prologue (aka, init frame
> saved regs / init extra frame info), it would just chain the frame
> pointer.
>
> Can I suggest looking at the cagney-unwind-20030108-branch as it
> contains the revamped unwind mechanism. In particular, it now leaves
> it to the target architecture to determine if/when additional prologue
> analysis should be performed.
>
> See the function get_prev_frame() for the unwind sequence, and
> sentinel-frame / dummy-frame for specific frame implementations.
>
> Andrew
>
>
--
Jim Ingham jingham@apple.com
Developer Tools
Apple Computer
prev parent reply other threads:[~2003-01-10 18:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-10 15:54 Andrew Cagney
2003-01-10 18:20 ` Jim Ingham [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=0D1EC560-24C8-11D7-BA2B-00039379E320@apple.com \
--to=jingham@apple.com \
--cc=ac131313@redhat.com \
--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