Re: When isn't there a selected frame?

Daniel Jacobowitz
2002-04-15T02:13:46Z

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