From: Corinna Vinschen <vinschen@redhat.com>
To: gdb@sources.redhat.com
Subject: Re: Further cache generating if PC is 0?
Date: Fri, 24 Jun 2005 08:07:00 -0000 [thread overview]
Message-ID: <20050624080659.GA2814@calimero.vinschen.de> (raw)
In-Reply-To: <549E179A-7DE1-478A-8AEC-996BE1411679@apple.com>
On Jun 23 14:27, Jason Molenda wrote:
>
> On Jun 23, 2005, at 2:13 PM, Mark Kettenis wrote:
>
> > cf http://sources.redhat.com/ml/gdb-patches/2005-06/msg00060.html
> >
> >Well, I still seem to remember that at one moment in time, around the
> >time the i386 was converted to using the new frame unwinding code,
> >there was a fairly common case on Linux systems where the assumption
> >that there MUST be a frame didn't hold.
>
> With my patch, if a function could be potentially frameless and we
> can't parse the prologue or we don't know where the function starts,
> I assume it's frameless. If the function must have set up a frame, I
> assume it set up a frame using the standard save-the-caller's-ebp idiom.
>
> It's entirely reasonable to argue that my assumptions are incorrect.
> But if -fomit-frame-pointer code exists on the stack, *no*
> assumptions are correct. The current code isn't correct, my code
> isn't correct. The only correct thing to do is abort the stack
> backtrace and insist that gdb can't continue.
That's basically what I was asking. As long as the current code
doesn't undergo a major rewrite as mentioned in the above thread,
I'd say that something as
cache->pc = frame_func_unwind (next_frame);
if (!cache->pc)
{
cache->base = 0;
return cache;
}
would be more correct. However, the above thread implies that it's
too late to worry about it ;-)
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.
prev parent reply other threads:[~2005-06-24 8:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-23 17:06 Corinna Vinschen
2005-06-23 18:51 ` Jason Molenda
2005-06-23 21:13 ` Mark Kettenis
2005-06-23 21:28 ` Jason Molenda
2005-06-24 8:07 ` Corinna Vinschen [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=20050624080659.GA2814@calimero.vinschen.de \
--to=vinschen@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