From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4235 invoked by alias); 15 Apr 2002 02:04:57 -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 4014 invoked from network); 15 Apr 2002 02:04:55 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 15 Apr 2002 02:04:55 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7087C3CEE for ; Sun, 14 Apr 2002 22:04:51 -0400 (EDT) Message-ID: <3CBA3543.4010601@cygnus.com> Date: Sun, 14 Apr 2002 19:04:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020328 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: When isn't there a selected frame? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00247.txt.bz2 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