From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85533 invoked by alias); 13 Dec 2019 06:03:31 -0000 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 Received: (qmail 85509 invoked by uid 89); 13 Dec 2019 06:03:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: barracuda.ebox.ca Received: from barracuda.ebox.ca (HELO barracuda.ebox.ca) (96.127.255.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Dec 2019 06:03:28 +0000 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id 7aYWq2Aop4K9UjER (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Dec 2019 01:03:25 -0500 (EST) Received: from simark.lan (unknown [192.222.164.54]) by smtp.ebox.ca (Postfix) with ESMTP id EB858441B21; Fri, 13 Dec 2019 01:03:24 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 0/7] Fix and cleanups in jit.c Date: Fri, 13 Dec 2019 06:03:00 -0000 Message-Id: <20191213060323.1799590-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-12/txt/msg00568.txt.bz2 Patch 1 fixes a bug I found while playing with the jit debug info reader interface. The other patches apply some C++ magic to make the code (IMO) easier to work with. Simon Marchi (7): Fix double-free when creating more than one block in JIT debug info reader jit: make gdb_object::symtabs a vector jit: c++-ify gdb_symtab jit: make gdb_symtab::blocks a vector jit: make gdb_object::symtabs a vector of unique_ptr jit: c++-ify gdb_block jit: make gdb_symtab::blocks a vector of unique_ptr gdb/jit.c | 184 +++++++++----------------- gdb/testsuite/gdb.base/jit-reader.exp | 14 +- gdb/testsuite/gdb.base/jithost.c | 45 +++++-- gdb/testsuite/gdb.base/jithost.h | 15 ++- gdb/testsuite/gdb.base/jitreader.c | 34 +++-- 5 files changed, 139 insertions(+), 153 deletions(-) -- 2.24.1