From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oB3BFyHZ2GdQYxMAWB0awg (envelope-from ) for ; Mon, 17 Mar 2025 22:23:29 -0400 Authentication-Results: simark.ca; 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=oTg/55W5; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5C1341E100; Mon, 17 Mar 2025 22:23:29 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id EC06E1E05C for ; Mon, 17 Mar 2025 22:23:28 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 973F53858031 for ; Tue, 18 Mar 2025 02:23:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 973F53858031 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=oTg/55W5 Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id 1B3163857C5D for ; Tue, 18 Mar 2025 02:15:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1B3163857C5D 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 1B3163857C5D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742264106; cv=none; b=Xo5Us+YaUobLeXNuNy1iJe9NMrHTI1W2STvQmqshnRTa/m/Abq+b5yLH2xwuYVkeX5Xxp4on33e3+nYMwHr0visYuVvD0cdPxNekG/0olOAd3YltVU3NIybULNo/Iy9t7sfvx9/rAtVvR5aY2GqbbulOlP+fBTAv1EezZKrhwl0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742264106; c=relaxed/simple; bh=8bprwSAAN2cFqielwKk+uTu+vwlsjjvOQ8upuM51ixg=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=ZkiNIltKx7ovTVitkpnDAG6CA/G9HvUrvtLldHJcHzdEnHdMvyN0KDQASa+ivVTLtJshdNBL2dUPtFvjx9mqjWBDRjL6byR6PpMYGjhznRz2h6ltIzrakGvfTffADBmseUFj2bw7YOpT+kQV4+Pp0AcvUWEvGhon0kiRJzyM0jQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B3163857C5D Received: from eig-obgw-5008a.ext.cloudfilter.net ([10.0.29.246]) by cmsmtp with ESMTPS id uMAxtTh40METluMTxteynO; Tue, 18 Mar 2025 02:15:05 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id uMTwtNDPt9ZRbuMTwtkIZ8; Tue, 18 Mar 2025 02:15:04 +0000 X-Authority-Analysis: v=2.4 cv=SL1EVvvH c=1 sm=1 tr=0 ts=67d8d728 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=ItBw4LHWJt0A:10 a=ytvENQV2Swvj4FQrtRIA:9 a=QEXdDO2ut3YA:10 a=6Ogn3jAGHLSNbaov7Orx:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=WJjCaNAbPCMVCUSusT09MSolGuAizmZbZCJ/XeLsXdw=; b=oTg/55W5QQ4izP56MYNBQAsHqr E0qYpWnQfzaCgTlO+nQlfFOMw7U1apXVWahX7ZHWaO3KUCGxlHPuznINM7jmrCCKKUCaf4KjkpqUP wOAUfS6AvI88quA4Y+XbPJYAP; 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 ) id 1tuMTv-00000002cIx-2OOQ; Mon, 17 Mar 2025 20:15:03 -0600 From: Tom Tromey Date: Mon, 17 Mar 2025 20:15:06 -0600 Subject: [PATCH 13/19] Use gdb unordered map in ravenscar.c MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250317-replace-std-stuff-v1-13-7ba4ee88e218@tromey.com> References: <20250317-replace-std-stuff-v1-0-7ba4ee88e218@tromey.com> In-Reply-To: <20250317-replace-std-stuff-v1-0-7ba4ee88e218@tromey.com> To: gdb-patches@sourceware.org Cc: Tom Tromey 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: 1tuMTv-00000002cIx-2OOQ 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: 14 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFT9mi/p+1n+TpCXC3OrE3bZ0PfO9cBo7CIisBQAEuelvPciNE4gZzZ8+WQL5a/Fk7g2QeSxmcnA/H8LNfuEd46fqVQ84ZhjL7dteBEwNTw5n/O9sKPP vct71KBqkeirrnrhRhC0nE0ZYFtO7Q6NPjuZ7tPSGRhU/PVkF/sQQ8WjCzCiGGHqzgjKlOhnH1A/30/yIcYdtd0aUB0fEtJ9mxc= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This changes ravenscar.c to use gdb::unordered_map. --- gdb/ravenscar-thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index 47db72b2d6902265ea8d2a254b8080a41f33aa8a..dae69175efcef1ad777cd871c0ba91a0aab50c2e 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -30,7 +30,7 @@ #include "top.h" #include "regcache.h" #include "objfiles.h" -#include +#include "gdbsupport/unordered_map.h" /* This module provides support for "Ravenscar" tasks (Ada) when debugging on bare-metal targets. @@ -194,7 +194,7 @@ struct ravenscar_thread_target final : public target_ops needed because sometimes the runtime will report an active task that hasn't yet been put on the list of tasks that is read by ada-tasks.c. */ - std::unordered_map m_cpu_map; + gdb::unordered_map m_cpu_map; }; /* Return true iff PTID corresponds to a ravenscar task. */ -- 2.46.1