Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* When isn't there a selected frame?
@ 2002-04-14 19:04 Andrew Cagney
  2002-04-14 19:13 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2002-04-14 19:04 UTC (permalink / raw)
  To: gdb

Hello,

Random bits of GDB contain code snipits like:

	if (selected_frame)
	  ..
	else
	  error ("No selected frame");

Is there any time when it doesn't make sense to have a selected frame 
(except, say when current_frame() is also NULL)?

I think the next step on the cache per thread frames is to replace 
selected_frame with:

	get_selected_frame ()
	  if (selected_frame)
	    return selected_frame;
	  else
	    return get_current_frame ()

so that selected frame is created on demand.

Andrew


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

end of thread, other threads:[~2002-04-17 14:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-14 19:04 When isn't there a selected frame? Andrew Cagney
2002-04-14 19:13 ` Daniel Jacobowitz
2002-04-14 20:08   ` Elena Zannoni
2002-04-17  7:37     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox