This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Batch mode and errors


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]