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)


On Nov 13, 2012, at 2:42 PM, Tom Tromey wrote:

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

Does that mean that a make cleanup done before the try-catch is not in effect within the try-catch?

	paul


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