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:11 PM, Tom Tromey wrote:

>>>>>> "Paul" ==   <Paul_Koning@Dell.com> writes:
> 
> Paul> Oops.  I suppose I can do this via the "cleanup" mechanism, right?
> 
> You'd have to insert a do_cleanups call in there somehow, but at that
> point is just as easy to just call the python function directly instead.
> 
> Tom

What I meant is that if I set the PyBuffer_Release as the cleanup function, it will be called if the handle_exception machinery gets an exception and returns out from under me.  Right?

	paul


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