From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16640 invoked by alias); 1 Apr 2019 15:18:14 -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 16620 invoked by uid 89); 1 Apr 2019 15:18:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=our X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (158.69.185.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 01 Apr 2019 15:18:12 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Destroy allocated values when exiting GDB From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <9d1447e09d4aa673826039321163b5a684e8e043@gdb-build> Date: Mon, 01 Apr 2019 15:18:00 -0000 X-SW-Source: 2019-q2/txt/msg00040.txt.bz2 *** TEST RESULTS FOR COMMIT 9d1447e09d4aa673826039321163b5a684e8e043 *** Author: Sergio Durigan Junior Branch: master Commit: 9d1447e09d4aa673826039321163b5a684e8e043 Destroy allocated values when exiting GDB When the user exits GDB, we might still have some allocated values in the chain, which, in specific scenarios, can cause problems when GDB attempts to destroy them in "quit_force". For example, see the bug reported at: https://bugzilla.redhat.com/show_bug.cgi?id=1690120 And the thread starting at: https://sourceware.org/ml/gdb-patches/2019-03/msg00475.html Message-ID: <87r2azkhmq.fsf@redhat.com> In order to avoid that, and to be more aware of our allocated resources, this commit implements a new function "finalize_values" and calls it from inside "quit_force". Tested by the BuildBot. 2019-04-01 Sergio Durigan Junior Pedro Alves * top.c (quit_force): Call 'finalize_values'. * value.c (finalize_values): New function. * value.h (finalize_values): Declare.