This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 2/2] Assert leftover cleanups in TRY_CATCH
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 06 May 2013 12:50:47 -0600
- Subject: Re: [patch 2/2] Assert leftover cleanups in TRY_CATCH
- References: <20130501165750 dot GA453 at host2 dot jankratochvil dot net> <87obcoyot3 dot fsf at fleche dot redhat dot com> <20130506181832 dot GA23882 at host2 dot jankratochvil dot net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> On Mon, 06 May 2013 19:56:56 +0200, Tom Tromey wrote:
>> I'm curious what you think about it.
Jan> C++ exceptions solve it all, everyone knows it, it is simple,
Jan> effective and at least in comparison with the existing GDB system
Jan> it is foolproof.
I know, and I agree that it would yield a better gdb, but I don't think
it is going to happen.
Given that, and the constant stream of cleanup bugs -- or potential
bugs, relying on constant and careful review to catch them -- I think we
have to examine second-best solutions.
The cleanup checker is one attempt at this. I'm not sure everybody will
accept the code changes it needs. Checking cleanups at runtime is
another approach.
Tom