From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29044 invoked by alias); 28 Oct 2017 05:38:03 -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 45440 invoked by uid 89); 28 Oct 2017 05:35:09 -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=Hx-languages-length:832 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; Sat, 28 Oct 2017 05:35:08 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Allocate breakpoint_objfile_data with new From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <43dce4394513d15ba8122c3bf442ec1028d93feb@gdb-build> Date: Sat, 28 Oct 2017 05:38:00 -0000 X-SW-Source: 2017-q4/txt/msg03110.txt.bz2 *** TEST RESULTS FOR COMMIT 43dce4394513d15ba8122c3bf442ec1028d93feb *** Author: Simon Marchi Branch: master Commit: 43dce4394513d15ba8122c3bf442ec1028d93feb Allocate breakpoint_objfile_data with new Allocate with new and free with delete. This allows using an std::vector in the following patch. I renamed free_breakpoint_probes to free_breakpoint_objfile_data, because it now doesn't only free the probes vector, but also the breakpoint_objfile_data structure itself. gdb/ChangeLog: * breakpoint.c (breakpoint_objfile_data): Initialize fields. (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data with new. (free_breakpoint_probes): Rename to ... (free_breakpoint_objfile_data): ... this, and call delete on bp_objfile_data..