From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +IQ3HrLZ2GdQYxMAWB0awg (envelope-from ) for ; Mon, 17 Mar 2025 22:25:54 -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=rd66+2T8; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 7550E1E100; Mon, 17 Mar 2025 22:25:54 -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 19D6D1E05C for ; Mon, 17 Mar 2025 22:25:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C6A9E3857C5F for ; Tue, 18 Mar 2025 02:25:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C6A9E3857C5F 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=rd66+2T8 Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 749923857C5F for ; Tue, 18 Mar 2025 02:15:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 749923857C5F 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 749923857C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742264106; cv=none; b=vYdmT5jKvqkslau/yQienSP3cYDtJl2v8Nh65x3yXLlFKNp8LdmHgApdtqLT1cWx0IU6nOaksdL528vuu3IQPQHPKlfZEbw7SFZRYSKvqSekjuMM+iVWb3grR6u2oXv1m4fzNed89Wh5VvH/2fxl7Kq91Kst39vtsZy+hLE3RXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742264106; c=relaxed/simple; bh=KvvZ1FdftNFFgApcKUIiQfaokGwV2tr2Aiu5OEkz47s=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=Uozum9AfcKdikhTtigD8ThUHOxxq3yN/Z0HawzeupmtzZdHcuA/a9hTDWc7cuBOzn8uTWFfgL2xavYoYzRXOm9AXI4WOkA5aImgf7gcZAj2boaLJRj9gIQUV9nFRe3OaMRfwwCHtD0FIf/mnMz6aGBWabiCviQ6Rb6d8b7Uqvqs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 749923857C5F Received: from eig-obgw-6004a.ext.cloudfilter.net ([10.0.30.197]) by cmsmtp with ESMTPS id uHZ6tRUGmzZPauMTyt8tUZ; Tue, 18 Mar 2025 02:15:06 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id uMTxt46LXRlrsuMTxtlHgi; Tue, 18 Mar 2025 02:15:05 +0000 X-Authority-Analysis: v=2.4 cv=Qamtvdbv c=1 sm=1 tr=0 ts=67d8d729 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=ItBw4LHWJt0A:10 a=i3uOrdd2Aa7G1ZKYXMkA: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=MBTKpj5VnUWkbJY4+rCZk6Xmn6iBW2SEUOXQnyrDFAM=; b=rd66+2T8qLRr17cx048SE8r5lL WfF92lNyhOMBB2+Y1AvqvspJuy1Vy+zkQzKQa5IR0vKmaAg3LdDt5p5kJjFgCvaQ53fom9dtXRWjQ ojdhWu1q9wd4jrfi6/zZOv6Vm; 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 1tuMTw-00000002cIx-3wn6; Mon, 17 Mar 2025 20:15:04 -0600 From: Tom Tromey Date: Mon, 17 Mar 2025 20:15:09 -0600 Subject: [PATCH 16/19] Use gdb unordered map in xml-tdesc.c MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250317-replace-std-stuff-v1-16-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: 1tuMTw-00000002cIx-3wn6 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: 17 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfDyU1ZD7E0Eew2QZq4KSv0zx8WYNN2sdEGDkV8lmGLbegVfvcKlfZRoMa0M09cV5cNyjn19c0h5H8luY1MKRJFLUkYnQeq6yVgqcsL9zgWlBgS/n1DNH Nbve6sAQxcp5u7EoJb19EujAaowbEYj3nBWSXBOGeCSKQEvLbFU0cguqv35pkg2MD6eK5kZni6/1FbKv7X1BNWe8jAk1fvWeJ9w= 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 xml-tdesc.c to use gdb::unordered_map. --- gdb/xml-tdesc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/xml-tdesc.c b/gdb/xml-tdesc.c index 436c493d4f914eb71a80bcbc08dc2ddd38c72027..f2db429c720fb59271ca37d2d2354c525d840fe8 100644 --- a/gdb/xml-tdesc.c +++ b/gdb/xml-tdesc.c @@ -25,7 +25,7 @@ #include "xml-tdesc.h" #include "osabi.h" #include "filenames.h" -#include +#include "gdbsupport/unordered_map.h" #include /* Maximum sizes. @@ -64,7 +64,7 @@ tdesc_parse_xml (const char *document, xml_fetch_another fetcher) then we will create unnecessary duplicate gdbarches. See gdbarch_list_lookup_by_info. */ -static std::unordered_map xml_cache; +static gdb::unordered_map xml_cache; /* Callback data for target description parsing. */ -- 2.46.1