Re: [patch 2/2] Assert leftover cleanups in TRY_CATCH

Tom Tromey
2013-05-06T18:50:51Z

>>>>> "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