From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24832 invoked by alias); 6 Sep 2012 16:13:42 -0000 Received: (qmail 24802 invoked by uid 22791); 6 Sep 2012 16:13:39 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Sep 2012 16:13:26 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M9X00500RO46Q00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Thu, 06 Sep 2012 19:13:23 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M9X004OWRQBS580@a-mtaout20.012.net.il>; Thu, 06 Sep 2012 19:13:23 +0300 (IDT) Date: Thu, 06 Sep 2012 16:13:00 -0000 From: Eli Zaretskii Subject: Re: RFC: fix atexit.register In-reply-to: <87d31znom9.fsf@fleche.redhat.com> To: Tom Tromey Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83d31zceod.fsf@gnu.org> References: <87d31znom9.fsf@fleche.redhat.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00047.txt.bz2 > From: Tom Tromey > 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.