From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16091 invoked by alias); 17 Apr 2003 23:11:40 -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 16075 invoked from network); 17 Apr 2003 23:11:39 -0000 Received: from unknown (HELO sundance.cse.ucsc.edu) (128.114.48.62) by sources.redhat.com with SMTP; 17 Apr 2003 23:11:39 -0000 Received: from localhost (smita@localhost) by sundance.cse.ucsc.edu (8.6.10/8.6.12) with ESMTP id QAA16637 for ; Thu, 17 Apr 2003 16:11:38 -0700 X-Authentication-Warning: sundance.cse.ucsc.edu: smita owned process doing -bs Date: Thu, 17 Apr 2003 23:11:00 -0000 From: Smita To: gdb@sources.redhat.com Subject: return value of a gdb command In-Reply-To: <16031.6671.349328.837129@casey.transmeta.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-04/txt/msg00208.txt.bz2 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? Thanks Smita