From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1047 invoked by alias); 12 Oct 2006 12:55:37 -0000 Received: (qmail 1038 invoked by uid 22791); 12 Oct 2006 12:55:37 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 12 Oct 2006 12:55:34 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GY060-00006W-Lp; Thu, 12 Oct 2006 08:55:32 -0400 Date: Thu, 12 Oct 2006 12:55:00 -0000 From: Daniel Jacobowitz To: jl.biord@free.fr Cc: gdb@sourceware.org Subject: Re: Response to long with info locals and info args Message-ID: <20061012125532.GC32739@nevyn.them.org> Mail-Followup-To: jl.biord@free.fr, gdb@sourceware.org References: <1160637029.452dea65672a6@imp2-g19.free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1160637029.452dea65672a6@imp2-g19.free.fr> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00077.txt.bz2 On Thu, Oct 12, 2006 at 09:10:29AM +0200, jl.biord@free.fr wrote: > > Hi, > > I want to have simple responses to "info locals" and "info args" because when > the variables are complex class the responses are too long. I want to have only > the names of locals or args variables. I need that because gdb is controlled by > an external program. > > Is it possible? You should be using GDB/MI to control GDB, not the command line. If you do that, there's -stack-list-args and -stack-list-locals. -- Daniel Jacobowitz CodeSourcery