This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
error-catching mechanism for scripts
- To: <gdb at sources dot redhat dot com>
- Subject: error-catching mechanism for scripts
- From: Don Howard <dhoward at redhat dot com>
- Date: Tue, 13 Nov 2001 12:32:02 -0800 (PST)
I've been trying to find a way to make gdb command scripts handle errors
in a flexible way -- either making continue-on-error an option or some
kind of simple exception catching mechanism:
set script-continue-on-error 1
-- or --
try
commands
catch
commands
end
I'd like to know what others think.
--
-Don
dhoward@redhat.com
gdb engineering