From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31204 invoked by alias); 18 Apr 2003 13:38:48 -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 31195 invoked from network); 18 Apr 2003 13:38:48 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 18 Apr 2003 13:38:48 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 196W4t-0003kQ-00; Fri, 18 Apr 2003 08:38:55 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 196W4f-0002AV-00; Fri, 18 Apr 2003 09:38:41 -0400 Date: Fri, 18 Apr 2003 13:38:00 -0000 From: Daniel Jacobowitz To: Smita , gdb@sources.redhat.com Subject: Re: return value of a gdb command Message-ID: <20030418133840.GA8316@nevyn.them.org> Mail-Followup-To: Smita , gdb@sources.redhat.com References: <16031.6671.349328.837129@casey.transmeta.com> <20030417231345.GA29425@nevyn.them.org> <20030418120954.GA8382@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030418120954.GA8382@white> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-04/txt/msg00216.txt.bz2 On Fri, Apr 18, 2003 at 08:09:55AM -0400, Bob Rossi wrote: > 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? Yes, probably - we don't really have a concept of "status". -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer