From: ac131313@redhat.com (Andrew Cagney)
To: Kevin Buettner <kevinb@redhat.com>
Cc: Andrew Cagney <ac131313@redhat.com>,
Daniel Jacobowitz <drow@mvista.com>,
gdb@sources.redhat.com
Subject: Re: frame_register_unwind(): "frame != NULL" assertion failure
Date: Tue, 18 Feb 2003 02:39:00 -0000 [thread overview]
Message-ID: <20030218015413.CC1B63CF1@localhost.redhat.com> (raw)
In-Reply-To: <1030217232113.ZM570@localhost.localdomain> "from Kevin Buettner at Feb 17, 2003 04:21:14 pm"
> On Feb 17, 4:37pm, Andrew Cagney wrote:
>
> > /* Use proc_desc calculated in frame_chain */
> > proc_desc =
> > get_next_frame (fci)
> > ? cached_proc_desc
> > : find_proc_desc (get_frame_pc (fci), get_next_frame (fci), 1);
> >
> > can you please change the above to be:
> >
> > : find_proc_desc (get_frame_pc (fci), NULL, 1);
> >
> > (with a comment) and modify read_next_frame_reg() to, when NULL, pull a
> > value from the register cache.
e.g., The mips should be updated to use the new frame unwind
mechanisms and, as part of this, implement a custom sentinel frame
unwinder (which would be passed the sentinal frame as a parameter).
The MIPS specific sentinel frame unwind code could then call
find_proc_desc() with the sentinel frame making all the frame==NULL
tests redundant. In the mean time, this call to find_proc_desc()
passes in an explicit (rather than implicit) NULL (by definition
current_frame-> == NULL). This way the task of tracking down if/where
find_proc_desc is called with a NULL frame is made much much easier.
> I will do this, but I really do not think it's the best solution. (If
> we're going to be checking for frame == NULL, then why did you introduce
> sentinel frames in the first place?)
It is part of the hack. The `correct fix' (rewrite MIPS to use the unwind
mechanism) would eliminate that call.
Andrew
next prev parent reply other threads:[~2003-02-18 2:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-13 21:24 Kevin Buettner
2003-02-13 21:29 ` Daniel Jacobowitz
2003-02-13 21:35 ` Kevin Buettner
2003-02-13 21:48 ` Kevin Buettner
2003-02-13 23:27 ` Kevin Buettner
2003-02-14 14:58 ` Andrew Cagney
2003-02-14 15:14 ` Daniel Jacobowitz
2003-02-14 15:24 ` Kevin Buettner
2003-02-17 15:37 ` Andrew Cagney
2003-02-17 23:21 ` Kevin Buettner
2003-02-18 2:39 ` Andrew Cagney [this message]
2003-02-18 1:59 ` Kevin Buettner
2003-02-18 22:51 ` Andrew Cagney
2003-02-20 16:18 ` Kevin Buettner
2003-02-20 16:28 ` Andrew Cagney
2003-02-20 16:36 ` Kevin Buettner
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=20030218015413.CC1B63CF1@localhost.redhat.com \
--to=ac131313@redhat.com \
--cc=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=kevinb@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