This is the mail archive of the gdb-patches@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: [patch 2/2] Do not bpstat_clear_actions on throw_exception #3


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


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