This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: When isn't there a selected frame?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]