From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7854 invoked by alias); 18 Apr 2003 12:10:03 -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 7843 invoked from network); 18 Apr 2003 12:10:01 -0000 Received: from unknown (HELO white) (68.14.146.65) by sources.redhat.com with SMTP; 18 Apr 2003 12:10:01 -0000 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 196Ugl-0002BV-00; Fri, 18 Apr 2003 08:09:55 -0400 Date: Fri, 18 Apr 2003 12:10:00 -0000 From: Bob Rossi To: Smita , gdb@sources.redhat.com Subject: Re: return value of a gdb command Message-ID: <20030418120954.GA8382@white> Mail-Followup-To: Smita , gdb@sources.redhat.com References: <16031.6671.349328.837129@casey.transmeta.com> <20030417231345.GA29425@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030417231345.GA29425@nevyn.them.org> User-Agent: Mutt/1.3.28i X-SW-Source: 2003-04/txt/msg00214.txt.bz2 On Thu, Apr 17, 2003 at 07:13:45PM -0400, Daniel Jacobowitz wrote: > On Thu, Apr 17, 2003 at 04:11:38PM -0700, Smita wrote: > > Hi, > > Is it possible to capture return value of a gdb command (status=error or > > success)? > > What I want to do is: > > (gdb) > > (gdb) if status of == SUCCESS > > then > > do-something > > else > > do-something-else > > end > > (gdb) > > > > Is it posible to do this? > > Not right now, no. > > -- > Daniel Jacobowitz > MontaVista Software Debian GNU/Linux Developer That was something I thought would be useful also. Would it be a difficult patch? Bob Rossi