From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59715 invoked by alias); 21 Sep 2017 04:28:26 -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 59704 invoked by uid 89); 21 Sep 2017 04:28:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy= 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; Thu, 21 Sep 2017 04:28:24 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Allocate bpstats with new From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <04afa70c8e1c931dd44db76eb9f0ddd4949ed00c@gdb-build> Date: Thu, 21 Sep 2017 05:09:00 -0000 X-SW-Source: 2017-q3/txt/msg04496.txt.bz2 *** TEST RESULTS FOR COMMIT 04afa70c8e1c931dd44db76eb9f0ddd4949ed00c *** Author: Tom Tromey Branch: master Commit: 04afa70c8e1c931dd44db76eb9f0ddd4949ed00c Allocate bpstats with new This changes struct bpstats to be allocated with new and freed with delete, adding constructors and a destructor in the process. This allows the removal of one cleanup and clears the way for more to follow. gdb/ChangeLog 2017-09-20 Tom Tromey * breakpoint.c (~bpstats): Rename from bpstat_free. Update. (bpstat_clear): Use delete. (bpstats): New constructors. (bpstat_copy, bpstat_stop_status): Use new. (dprintf_after_condition_true): Update. * breakpoint.h (bpstats::bpstats): Add constructors. (bpstats::~bpstats): Add destructor.