From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10307 invoked by alias); 5 Feb 2002 22:32:55 -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 10228 invoked from network); 5 Feb 2002 22:32:53 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 5 Feb 2002 22:32:53 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id RAA18053; Tue, 5 Feb 2002 17:31:01 -0500 Received: from node128.ott.qnx.com (node128 [10.0.0.128]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id RAA25947; Tue, 5 Feb 2002 17:37:09 -0500 Received: by node128.ott.qnx.com (8.9.3/8.9.3) id RAA3387432; Tue, 5 Feb 2002 17:33:07 -0500 Message-Id: <200202052233.RAA3387432@node128.ott.qnx.com> Subject: GDB MI command "-stack-list-arguments" To: gdb@sources.redhat.com Date: Tue, 05 Feb 2002 14:32:00 -0000 From: "Graeme Peterson" X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-02/txt/msg00109.txt.bz2 Hi, all. I am using GDB-5.0 in MI mode. According to documentation, the "stack-list-arguments 1" command is supposed to display a list of the arguments for all frames. But it also displays all locals for all frames if the current frame has an argument (non-void). I don't know if it is correct or not but this is very convenient. Could someone please verify what the correct behavior should be for "stack-list-arguments"? Should it return the local variables at all? If so, should it be returning them regardless of whether or not the current function had non-void parameters? To see the problem debug this: #include int main( int argc, char* argv[] ) { int k = 0; return(0); } Then replace "int main( int argc, char* argv[] )" by "int main( void )" and try again. Thanks. Graeme Peterson.