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


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