From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14716 invoked by alias); 7 Apr 2010 20:52:24 -0000 Received: (qmail 14706 invoked by uid 22791); 7 Apr 2010 20:52:23 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from eu1sys200aog113.obsmtp.com (HELO eu1sys200aog113.obsmtp.com) (207.126.144.135) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Apr 2010 20:52:18 +0000 Received: from source ([167.4.1.35]) (using TLSv1) by eu1sys200aob113.postini.com ([207.126.147.11]) with SMTP ID DSNKS7zwfP9CKGMbvNfWCYmxGsUuFY7LUN8V@postini.com; Wed, 07 Apr 2010 20:52:17 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.80.115]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 42B2F3E; Wed, 7 Apr 2010 20:49:18 +0000 (GMT) Received: from mail2.crn.st.com (mail2.crn.st.com [167.4.2.66]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 164C325B; Wed, 7 Apr 2010 20:52:10 +0000 (GMT) Received: from [167.4.249.181] (ottl131.ott.st.com [167.4.249.181]) by mail2.crn.st.com (MOS 3.8.7a) with ESMTP id AHY80124 (AUTH "michel metzger"); Wed, 7 Apr 2010 15:52:08 -0500 (CDT) Message-ID: <4BBCF078.6030103@st.com> Date: Wed, 07 Apr 2010 20:52:00 -0000 From: Michel METZGER User-Agent: Thunderbird 2.0.0.24 (X11/20100228) MIME-Version: 1.0 To: tromey@redhat.com Cc: gdb@sourceware.org Subject: Re: Batch mode and errors References: <4BBBB093.2050809@st.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00027.txt.bz2 Great minds think alike, that's exactly what I ended up doing :) Michel. Tom Tromey wrote: >>>>>> "Michel" == Michel METZGER writes: > > Michel> I was wondering if it was possible to run gdb in batch mode and force > Michel> it to execute the entire script I provide with --command even if > Michel> it contains errors. I want to test the error handling of our new > Michel> commands and it would be really helpful! > > Not that I know of, sorry. > > If you control the contents of the file, you could do something ugly > like run each separate command through 'python' and have it use > try/catch around gdb.execute. > > Tom >