From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10557 invoked by alias); 15 Apr 2002 02:13:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10550 invoked from network); 15 Apr 2002 02:13:44 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 15 Apr 2002 02:13:44 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 16ww0J-0006of-00 for ; Sun, 14 Apr 2002 22:14:03 -0400 Date: Sun, 14 Apr 2002 19:13:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: When isn't there a selected frame? Message-ID: <20020414221403.A26166@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <3CBA3543.4010601@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CBA3543.4010601@cygnus.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-04/txt/msg00248.txt.bz2 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