From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 68FFE3851C39 for ; Mon, 20 Jul 2020 20:41:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 68FFE3851C39 X-ASG-Debug-ID: 1595277673-0c856e181010bde0001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id pQ109mHJZMfoE5E8 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Jul 2020 16:41:13 -0400 (EDT) X-Barracuda-Envelope-From: simon.marchi@efficios.com X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from smarchi-efficios.internal.efficios.com (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) by smtp.ebox.ca (Postfix) with ESMTP id E0D2B441B21; Mon, 20 Jul 2020 16:41:12 -0400 (EDT) From: Simon Marchi X-Barracuda-RBL-IP: 192.222.181.218 X-Barracuda-Effective-Source-IP: 192-222-181-218.qc.cable.ebox.net[192.222.181.218] X-Barracuda-Apparent-Source-IP: 192.222.181.218 To: gdb-patches@sourceware.org Cc: Morichetti, Laurent , Simon Marchi Subject: [PATCH 0/4] Regcache fix and optimization Date: Mon, 20 Jul 2020 16:40:57 -0400 X-ASG-Orig-Subj: [PATCH 0/4] Regcache fix and optimization Message-Id: <20200720204101.2849535-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1595277673 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 1002 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.83339 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-19.1 required=5.0 tests=BAYES_00, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2020 20:41:23 -0000 The main goal of this series is patch 4, and is about changing the regcache storage from a linked list to a map, to make lookups and removals more efficient. Patches 1 and 2 are cleanups. They are not necessary, but I think they would be nice to have. Patch 3 addresses a potential bug I spotted while reading the code. Simon Marchi (4): gdb: rename regcache::current_regcache to regcache::regcaches gdb: move regcache::regcaches to regcache.c gdb: pass target to thread_ptid_changed observable gdb: change regcache list to be a map gdb/dwarf2/index-write.c | 1 + gdb/infrun.c | 78 +++++++++++- gdb/observable.h | 6 +- gdb/record-btrace.c | 1 + gdb/regcache.c | 259 +++++++++++++++++++++++++++++---------- gdb/regcache.h | 7 -- gdb/sparc64-tdep.c | 2 +- gdb/thread.c | 2 +- gdbsupport/ptid.h | 16 +++ 9 files changed, 291 insertions(+), 81 deletions(-) -- 2.26.2