This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Python 3 support, part 1 (non-testsuite part)
>>>>> "Paul" == <Paul_Koning@Dell.com> writes:
Paul> What I meant is that if I set the PyBuffer_Release as the cleanup
Paul> function, it will be called if the handle_exception machinery gets an
Paul> exception and returns out from under me. Right?
Yeah, if you make the cleanup inside the try-catch.
But then you have to explicitly call do_cleanups or discard_cleanups as
well.
Tom