From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23358 invoked by alias); 20 Oct 2003 21:28:36 -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 23336 invoked from network); 20 Oct 2003 21:28:35 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 20 Oct 2003 21:28:35 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7C54F2B89 for ; Mon, 20 Oct 2003 17:28:34 -0400 (EDT) Message-ID: <3F945382.8030203@redhat.com> Date: Mon, 20 Oct 2003 21:28:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: "No registers" or "No inferior to debug"? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00223.txt.bz2 Hello, Ref: default.exp At present get_selected_frame(), when there is no inferior(1), throws the error: No registers Except for the case where the user types: (gdb) info registers No registers this message won't be very enlightening. For instance, a user trying to do a return when there is no process to debug would (theoretically) encounter the error: (gdb) return No registers I'm wondering if the error message should be standardized vis: (gdb) info registers No inferior to debug (gdb) return No inferior to debug Looking through default.exp I see plenty of alternatives vis: The program is not being run. No stack No frame selected No registers No frame selected Thoughts? Suggestions? Andrew (1) I'm treating a core file as an inferior here (reasonable?).