This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Batch mode and errors
- From: Tom Tromey <tromey at redhat dot com>
- To: Michel METZGER <michel dot metzger at st dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 07 Apr 2010 14:31:43 -0600
- Subject: Re: Batch mode and errors
- References: <4BBBB093.2050809@st.com>
- Reply-to: tromey at redhat dot com
>>>>> "Michel" == Michel METZGER <michel.metzger@st.com> 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