RFC: fix atexit.register

Eli Zaretskii eliz@gnu.org
Thu Sep 6 16:13:00 GMT 2012


> From: Tom Tromey <tromey@redhat.com>
> Date: Thu, 06 Sep 2012 09:43:26 -0600
> 
> A user on irc reported that Python's atexit.register did not work
> properly in gdb.
> 
> This patch fixes the problem by installing a final cleanup that calls
> Py_Finalize.
> 
> Regression tested on x86-64 F16.
> New test case included.
> 
> Tom
> 
> 	* NEWS: Update.
> 	* python/python.c (finalize_python): New function.
> 	(_initialize_python): Make a final cleanup.
> 
> 	* gdb.python/python.exp: Test atexit.register.

OK for the NEWS part.

Thanks.



More information about the Gdb-patches mailing list