When isn't there a selected frame?

Daniel Jacobowitz drow@mvista.com
Sun Apr 14 19:13:00 GMT 2002


On Sun, Apr 14, 2002 at 10:04:51PM -0400, Andrew Cagney wrote:
> 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)?

Perhaps to handle when the target is not running?  I am pretty sure
I've reached a couple of those messages.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list