public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* deprecated_selected_frame
@ 2003-08-01 16:58 Daniel Jacobowitz
  2003-08-01 19:21 ` deprecated_selected_frame Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2003-08-01 16:58 UTC (permalink / raw)
  To: gdb

Hi Andrew,

Do you know of any places where converting to get_selected_frame () is
really wrong?  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.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: deprecated_selected_frame
  2003-08-01 16:58 deprecated_selected_frame Daniel Jacobowitz
@ 2003-08-01 19:21 ` Andrew Cagney
  2003-08-01 19:24   ` deprecated_selected_frame Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2003-08-01 19:21 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

> 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.

Andrew


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: deprecated_selected_frame
  2003-08-01 19:21 ` deprecated_selected_frame Andrew Cagney
@ 2003-08-01 19:24   ` Daniel Jacobowitz
  2003-08-01 19:36     ` deprecated_selected_frame Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2003-08-01 19:24 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: deprecated_selected_frame
  2003-08-01 19:24   ` deprecated_selected_frame Daniel Jacobowitz
@ 2003-08-01 19:36     ` Andrew Cagney
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2003-08-01 19:36 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

> 
> 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?

I'd rather they remained deprecated and then dealt with on an as needed 
basis.  Otherwize maintainers won't know that what they are looking at 
is wrong :-(

The bugs you're finding really reflect limitations in the testsuite.  Sigh!

Andrew


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-01 19:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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   ` deprecated_selected_frame Daniel Jacobowitz
2003-08-01 19:36     ` deprecated_selected_frame Andrew Cagney

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).