* Batch mode and errors
@ 2010-04-06 22:07 Michel METZGER
2010-04-07 20:31 ` Tom Tromey
0 siblings, 1 reply; 3+ messages in thread
From: Michel METZGER @ 2010-04-06 22:07 UTC (permalink / raw)
To: gdb
Hi,
We are developing a set of extensions for GDB with python and I'm
integrating this in our regression environment.
I was wondering if it was possible to run gdb in batch mode and force
it to execute the entire script I provide with --command even if
it contains errors. I want to test the error handling of our new
commands and it would be really helpful!
Thanks,
Michel Metzger.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Batch mode and errors
2010-04-06 22:07 Batch mode and errors Michel METZGER
@ 2010-04-07 20:31 ` Tom Tromey
2010-04-07 20:52 ` Michel METZGER
0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2010-04-07 20:31 UTC (permalink / raw)
To: Michel METZGER; +Cc: gdb
>>>>> "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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Batch mode and errors
2010-04-07 20:31 ` Tom Tromey
@ 2010-04-07 20:52 ` Michel METZGER
0 siblings, 0 replies; 3+ messages in thread
From: Michel METZGER @ 2010-04-07 20:52 UTC (permalink / raw)
To: tromey; +Cc: gdb
Great minds think alike, that's exactly what I ended up doing :)
Michel.
Tom Tromey wrote:
>>>>>> "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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-07 20:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-06 22:07 Batch mode and errors Michel METZGER
2010-04-07 20:31 ` Tom Tromey
2010-04-07 20:52 ` Michel METZGER
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox