From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16850 invoked by alias); 17 Apr 2003 23:13:53 -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 16843 invoked from network); 17 Apr 2003 23:13:53 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 17 Apr 2003 23:13:53 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 196IZr-0002hf-00; Thu, 17 Apr 2003 18:13:59 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 196IZd-0007eu-00; Thu, 17 Apr 2003 19:13:45 -0400 Date: Thu, 17 Apr 2003 23:13:00 -0000 From: Daniel Jacobowitz To: Smita Cc: gdb@sources.redhat.com Subject: Re: return value of a gdb command Message-ID: <20030417231345.GA29425@nevyn.them.org> Mail-Followup-To: Smita , gdb@sources.redhat.com References: <16031.6671.349328.837129@casey.transmeta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-04/txt/msg00209.txt.bz2 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