| Message ID | 20250317-replace-std-stuff-v1-0-7ba4ee88e218@tromey.com |
|---|---|
| Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org>
X-Original-To: patchwork@sourceware.org
Delivered-To: patchwork@sourceware.org
Received: from server2.sourceware.org (localhost [IPv6:::1])
by sourceware.org (Postfix) with ESMTP id 843B03858CDA
for <patchwork@sourceware.org>; Tue, 18 Mar 2025 02:18:12 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 843B03858CDA
Authentication-Results: sourceware.org;
dkim=fail reason="signature verification failed" (768-bit key,
unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256
header.s=default header.b=g+HZqIFJ
X-Original-To: gdb-patches@sourceware.org
Delivered-To: gdb-patches@sourceware.org
Received: from omta038.useast.a.cloudfilter.net
(omta038.useast.a.cloudfilter.net [44.202.169.37])
by sourceware.org (Postfix) with ESMTPS id 5EDCE3858CDA
for <gdb-patches@sourceware.org>; Tue, 18 Mar 2025 02:15:00 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5EDCE3858CDA
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=tromey.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5EDCE3858CDA
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=44.202.169.37
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742264100; cv=none;
b=DKJ+L5cLj+FJ2Pu/YnWaIM+Fsl0jnReTzrWjS5VHCchcwz+WjAkM0d3FYobm+twZx7QbKNZSz/PPoA6mAVw/x9QA//aXbH2P1uPgOgjTxUEAPc5sLda0zRhCwZ1bxrO2EZeaNYCZGrAWbjpHXftV73UqN+DS2uGN3ToirKJRxBw=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1742264100; c=relaxed/simple;
bh=fBvd29vEo8plWjWtlBotesnPr1aRSOxeqTR1ibDZtQ8=;
h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To;
b=SHn4dfeuk5sf+vN7+zJng8bUTr0mUTzVEAeYnEj96kH3tWRCsNeWeydF69/UsnetTKHgV9QAKP3s8QY/Qci4UbWD2JtZqjs2vZkCsFgb0sBMjroV/7zhFeK3TwJv8ssh7Emdjjn+7vok9FXTMAsmf3EyMKD1xgZNhs+HkvGQ96U=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5EDCE3858CDA
Received: from eig-obgw-6006a.ext.cloudfilter.net ([10.0.30.182])
by cmsmtp with ESMTPS
id uMFUtaNC7iuzSuMTrtc7ZY; Tue, 18 Mar 2025 02:14:59 +0000
Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS
id uMTqtZt0aSasJuMTqtOBJE; Tue, 18 Mar 2025 02:14:58 +0000
X-Authority-Analysis: v=2.4 cv=A4dqPbWG c=1 sm=1 tr=0 ts=67d8d722
a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17
a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8
a=nDjQKWetoOy84Uy4cPQA:9 a=QEXdDO2ut3YA:10 a=4G6NA9xxw8l3yy4pmD5M:22
a=6Ogn3jAGHLSNbaov7Orx:22
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com;
s=default;
h=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version:
Message-Id:Date:Subject:From:Sender:Reply-To:Content-ID:Content-Description:
Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
List-Post:List-Owner:List-Archive;
bh=k4YHM6UowIoRET4SGS/MDHz9/aMYeKb3lvkpM2cXir8=; b=g+HZqIFJz5SJ3rfzecf7Afw9hF
8r1NLkD6nLrzyf5HdzoOULTNIqjVuJ76w5Bi2DUWlOEpMVCnDH+i8h86rlIqmxAE+SZVoiNxajgDy
UYnAYv5ZSqMbelbQ8/AYSNk/j;
Received: from 97-122-96-32.hlrn.qwest.net ([97.122.96.32]:36240
helo=prentzel.local)
by box5379.bluehost.com with esmtpsa (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1)
(envelope-from <tom@tromey.com>) id 1tuMTp-00000002cIx-2DeO;
Mon, 17 Mar 2025 20:14:57 -0600
From: Tom Tromey <tom@tromey.com>
Subject: [PATCH 00/19] Convert std::unordered_{set,map} to gdb implementations
Date: Mon, 17 Mar 2025 20:14:53 -0600
Message-Id: <20250317-replace-std-stuff-v1-0-7ba4ee88e218@tromey.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-B4-Tracking: v=1; b=H4sIAB3X2GcC/x3MQQ6CQAyF4auQrp3IjCjRqxAXnaGFJjqQFgkJ4
e6OLt7iW7x/ByMVMnhUOyitYjLlAn+qII2YB3LSF0Oow7W++NYpzS9M5Gzpyz7MjptbyzEFf28
Yym9WYtn+ze5ZHNHIRcWcxl9pUhkkn99oCykcxxfnWXdtgwAAAA==
X-Change-ID: 20250317-replace-std-stuff-f467fbc2194f
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tom@tromey.com>
X-Mailer: b4 0.14.2
X-AntiAbuse: This header was added to track abuse,
please include it with any abuse report
X-AntiAbuse: Primary Hostname - box5379.bluehost.com
X-AntiAbuse: Original Domain - sourceware.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - tromey.com
X-BWhitelist: no
X-Source-IP: 97.122.96.32
X-Source-L: No
X-Exim-ID: 1tuMTp-00000002cIx-2DeO
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: 97-122-96-32.hlrn.qwest.net (prentzel.local)
[97.122.96.32]:36240
X-Source-Auth: tom+tromey.com
X-Email-Count: 1
X-Org: HG=bhshared;ORG=bluehost;
X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20=
X-Local-Domain: yes
X-CMAE-Envelope:
MS4xfOpxMMqkaTYtca4PIW9HW81C2eYg7ne9KRw1qXSaOuK8e58fOQaOzTdZFG3a2pTrHoWsdy7bY8Qm97VmqCumbzUNyM8ZnZxTmZO0maC6N9la2aqUdmiA
/WnFpqdAR497y4DVklK/psyRuIVMUEJJE42za5yKClFQ+5IeEPUkEi6zaOHF456MeIK/NRWw5YkvJXCq0E2qhmSfaetIvgOjWR8=
X-Spam-Status: No, score=-3009.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gdb-patches@sourceware.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org>
List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>,
<mailto:gdb-patches-request@sourceware.org?subject=unsubscribe>
List-Archive: <https://sourceware.org/pipermail/gdb-patches/>
List-Post: <mailto:gdb-patches@sourceware.org>
List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help>
List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>,
<mailto:gdb-patches-request@sourceware.org?subject=subscribe>
Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org
|
| Series |
Convert std::unordered_{set,map} to gdb implementations
|
|
Message
Tom Tromey
March 18, 2025, 2:14 a.m. UTC
This changes a number of uses of std::unordered_{set,map} to the gdb::
equivalents.
Not every spot is converted. I only changed the ones that I felt I
could reasonably test; or in one or two cases, I left one alone since
it will be addressed some other way.
I've also got some similar patches to reduce the use of htab_t. I'll
send that as a separate series sometime later.
Regression tested on x86-64 Fedora 40.
Signed-off-by: Tom Tromey <tom@tromey.com>
---
Tom Tromey (19):
Use gdb unordered set and map in corelow.c
Use gdb unordered set in breakpoint.c
Use gdb unordered map in dictionary.c
Use gdb unordered map in gdb_bfd.c
Use gdb unordered set in symtab.c
Use gdb unordered map in ada-exp.y
Use gdb unordered map in inferior.h
Use gdb unordered map in stap-probe.c
Use gdb unordered map for complaints
Use gdb unordered map in linux-nat.c
Use gdb unordered set in linux-procfs.c
Use gdb unordered set and map in Python layer
Use gdb unordered map in ravenscar.c
Use gdb unordered map in target.c
Use gdb unordered set and map in unit tests
Use gdb unordered map in xml-tdesc.c
Use gdb unordered set and map in cp-namespace.c
Use gdb unordered map in tui-io.c
Use gdb unordered map in regcache.c
gdb/ada-exp.y | 4 ++--
gdb/breakpoint.c | 3 +--
gdb/complaints.c | 6 +++---
gdb/complaints.h | 4 ++--
gdb/corelow.c | 16 +++++++-------
gdb/cp-namespace.c | 10 +++++----
gdb/dictionary.c | 12 +++++------
gdb/gdb_bfd.c | 4 ++--
gdb/gdbarch-selftests.c | 5 ++---
gdb/inferior.h | 4 ++--
gdb/linux-tdep.c | 4 ++--
gdb/nat/linux-procfs.c | 15 ++-----------
gdb/python/py-inferior.c | 4 ++--
gdb/python/py-registers.c | 4 ++--
gdb/ravenscar-thread.c | 4 ++--
gdb/regcache.c | 5 +++--
gdb/stap-probe.c | 4 ++--
gdb/symtab.c | 4 ++--
gdb/target.c | 4 ++--
gdb/tui/tui-io.c | 37 +++++++++++++++++++++++++++-----
gdb/ui-style.h | 18 ++++------------
gdb/unittests/command-def-selftests.c | 5 ++---
gdb/unittests/intrusive_list-selftests.c | 4 ++--
gdb/xml-tdesc.c | 4 ++--
24 files changed, 95 insertions(+), 89 deletions(-)
---
base-commit: 71f193a5c1cb02dcde6ac160cdab88e9725862bb
change-id: 20250317-replace-std-stuff-f467fbc2194f
Best regards,
Comments
On 2025-03-17 22:14, Tom Tromey wrote: > This changes a number of uses of std::unordered_{set,map} to the gdb:: > equivalents. > > Not every spot is converted. I only changed the ones that I felt I > could reasonably test; or in one or two cases, I left one alone since > it will be addressed some other way. > > I've also got some similar patches to reduce the use of htab_t. I'll > send that as a separate series sometime later. > > Regression tested on x86-64 Fedora 40. > > Signed-off-by: Tom Tromey <tom@tromey.com> Modulo the minor questions/comments I sent, this LGTM. Most of it is 1:1 replacement, so it's relatively trivial. Approved-By: Simon Marchi <simon.marchi@efficios.com> Thanks, Simon
Simon> Modulo the minor questions/comments I sent, this LGTM. Most of it is Simon> 1:1 replacement, so it's relatively trivial. Simon> Approved-By: Simon Marchi <simon.marchi@efficios.com> Rather than send a v2 just for the hash change, I'm just going to check it in, since as you say it's largely trivial. thanks, Tom