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] gdb: Replace make_bpstat_clear_actions_cleanup


>>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:

Andrew> Replace make_bpstat_clear_actions_cleanup with a new class that can
Andrew> perform the cleanup.

Hah, I took a stab at this too.  I started with something like your
patch but generalized it to a cleanup_function that takes a
function_view as a callback.  This allowed for the removal of some more
cleanups.  See my branch submit/cleanup/longjmp-bp.

I wonder what you think of that approach.  I was on the fence about it
myself.  On the one hand, it's pretty simple to understand and it fits a
number of existing spots in gdb.  On the other hand, maybe it's a bit
too easy to get into trouble with something generic.

If you try the branch, be warned it still has some regressions, which is
why I haven't submitted it yet.

Tom


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