[patch 2/2] Do not bpstat_clear_actions on throw_exception #3

Tom Tromey tromey@redhat.com
Fri Aug 26 17:38:00 GMT 2011


Pedro> I think the neatest fix would be to add some try/catch/finaly
Pedro> syntax to the cli.  There was a patch for that posted eons ago:
Pedro> http://sourceware.org/ml/gdb-patches/2001-12/msg00449.html

This is also languishing in bugzilla.

I think it would be a decent addition.  While I tend to think that more
serious scripting should be done in Python now, I think there is also
room for CLI stuff.  (I don't have a hard-and-fast rule here; I don't
want to try to expand the CLI into a full-blown language, but I don't
mind additions much either.)

This won't address Jan's use case, but you dug up another patch that
does, so all is well :)

FWIW I wrote a simple "ignore-errors" command in Python to satisfy my
own occasional need for this.

Jan> (a) throw_exception will call bpstat_clear_actions only if
Jan> exception.error is not NOT_AVAILABLE_ERROR (adding later my new
Jan> ENTRY_VALUE_NOT_AVAILABLE).

Pedro> I don't like this at all.

Me neither.  This code has really got to go.

Tom



More information about the Gdb-patches mailing list