From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88998 invoked by alias); 13 May 2015 18:53:15 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 88989 invoked by uid 89); 13 May 2015 18:53:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (176.31.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 13 May 2015 18:53:14 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Call dummy_frame_dtor_ftype also from remove_dummy_frame From: sergiodj+buildbot@redhat.com To: gdb-testers@sourceware.org Message-Id: <5e9705017f5b257421136b8d7752b9c793335ace@kwanyin> Date: Wed, 13 May 2015 18:53:00 -0000 X-SW-Source: 2015-q2/txt/msg04195.txt.bz2 *** TEST RESULTS FOR COMMIT 5e9705017f5b257421136b8d7752b9c793335ace *** Author: Jan Kratochvil Branch: master Commit: 5e9705017f5b257421136b8d7752b9c793335ace Call dummy_frame_dtor_ftype also from remove_dummy_frame There was now a leak-like bug that if dummy_frame "disappeared" by remove_dummy_frame then its destructor was not called. For example in the case of 'compile code' dummy frames the injected objfile would never get freed after some inferior longjmp out of the injected code. gdb/ChangeLog 2015-05-13 Jan Kratochvil * compile/compile-object-run.c (do_module_cleanup): Add parameter registers_valid. (compile_object_run): Update do_module_cleanup caller. * dummy-frame.c: Include infcall.h. (struct dummy_frame): Update dtor comment. (remove_dummy_frame): Call dtor. (pop_dummy_frame): Update dtor caller. * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter registers_valid.