From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: deprecated_selected_frame
Date: Fri, 01 Aug 2003 19:24:00 -0000 [thread overview]
Message-ID: <20030801192406.GA2012@nevyn.them.org> (raw)
In-Reply-To: <3F2ABDBE.9000904@redhat.com>
On Fri, Aug 01, 2003 at 03:21:34PM -0400, Andrew Cagney wrote:
> >Hi Andrew,
> >
> >Do you know of any places where converting to get_selected_frame () is
> >really wrong?
>
> Most of the code should gain a frame parameter and receive the selected
> frame that way. Only the top level MI/CLI code, where the `selected
> thread's selected frame' has meaning should get_selected_frame be used.
>
> >A very few of the == NULL checks should probably stay for
> >now, but I bet that all of the uses shouldn't.
>
> >I've got two independent bug reports caused by a NULL
> >deprecated_selected_frame on the 6.0 branch, and I fixed one last week.
>
> The last one I saw was a top level MI routine so get_selected_frame
> would make sense.
Oh, right - I remember your previous explanation of this now.
I don't have time to do that level of overhaul, but I do have a patch
which converts the 90% which are trivial to use get_selected_frame.
Would you prefer that they be left and dealt with as encountered,
or updated with a FIXME at each?
They're all potential internal errors.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-08-01 19:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-01 16:58 deprecated_selected_frame Daniel Jacobowitz
2003-08-01 19:21 ` deprecated_selected_frame Andrew Cagney
2003-08-01 19:24 ` Daniel Jacobowitz [this message]
2003-08-01 19:36 ` deprecated_selected_frame Andrew Cagney
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=20030801192406.GA2012@nevyn.them.org \
--to=drow@mvista.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).