| Message ID | 20250317-replace-std-stuff-v1-8-7ba4ee88e218@tromey.com |
|---|---|
| State | New |
| 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 4081F385801B for <patchwork@sourceware.org>; Tue, 18 Mar 2025 02:19:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4081F385801B 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=IBQBv3C4 X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 16765385841E for <gdb-patches@sourceware.org>; Tue, 18 Mar 2025 02:15:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 16765385841E 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 16765385841E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742264103; cv=none; b=ccbhYF/H5MfB2pDfEv6Bmkeuuh1m62ye44rljEmo+enVwsXdyyrjTCi9b+f7HgFL7aqtPPfV+YQy+8aZKKpymXAu30DbCuJJnSplPX7rqsSpO73tqv8/HH/FO9UJlA0Bp3F9Rg1GH2GmwPByLLKcXAQCpzeiui8j97eLPkgzBAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742264103; c=relaxed/simple; bh=GBYO/p61ASsMFe4rffoaq5EQ12kEiynHQl5ti7gV/u0=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=btsGlNYIw0dG5yS9LC5jCgwDItGxzuJqTURZRzy4AEPlRE989SRGM8wNHy2xtiFeaTaxxYu6tqK8prYNVlQfCul+52d2YVlnZ+Vmh0KaySHs+ui2mB71n4w7PV9GxInm7UlscNkrGc3kvpvRkNlmE6EYG+7vlWu3v1kM7UKsEzg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 16765385841E Received: from eig-obgw-6004a.ext.cloudfilter.net ([10.0.30.197]) by cmsmtp with ESMTPS id uMFRtTHOfVkcRuMTut98Jn; Tue, 18 Mar 2025 02:15:02 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id uMTtt46FHRlrsuMTutlHaq; Tue, 18 Mar 2025 02:15:02 +0000 X-Authority-Analysis: v=2.4 cv=Qamtvdbv c=1 sm=1 tr=0 ts=67d8d726 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=ItBw4LHWJt0A:10 a=_x8DlbaBwG9R9ERQXxkA: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=QtnIsjH78JOnqgNhSIaD7F1QwfrHBxIQLN/6Gkajokc=; b=IBQBv3C4WqoHHfEDwkLR1fLTrr 44vPqFR4meDv6w9XYgLhsBotxhLE+7F9QKniDVIIsk3GqCub6UeP2JkvfCrAwqN7XAtLZf/Z+hA5v psBEYhLRAvuL1VN6CY7EsWCjh; 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 1tuMTt-00000002cIx-0aL0; Mon, 17 Mar 2025 20:15:01 -0600 From: Tom Tromey <tom@tromey.com> Date: Mon, 17 Mar 2025 20:15:01 -0600 Subject: [PATCH 08/19] Use gdb unordered map in stap-probe.c MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250317-replace-std-stuff-v1-8-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 <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: 1tuMTt-00000002cIx-0aL0 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: 9 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfPruAVbQ9+Fy9W10JkL41YUYpp2pYDV6q3d3wnu7DLAjiBPh7M+Z1jSlbBXOPkVkrpeu1/m533HoBHDowX/INB23dzrGG1g+YStE+Eo38KzNJVocF0Yd ydaN1bNWUJ0+XbbILNeQaMquQeak2z6wv6oJza6lB7UOoqkA7us4PUTLmzFLf4+QdUYosZPmTTJJk3ML/kBZP9Gk0tGYUoULi5Y= X-Spam-Status: No, score=-3017.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, 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=ham 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
|
|
Commit Message
Tom Tromey
March 18, 2025, 2:15 a.m. UTC
This changes stap-probe.c to use gdb::unordered_map. --- gdb/stap-probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c index 38ea199edd766c603ceb8251a2ec96fa7d10b0cf..b312b38db04670b2b1d7b5a0ea2eaf57a42b5bc9 100644 --- a/gdb/stap-probe.c +++ b/gdb/stap-probe.c @@ -37,7 +37,7 @@ #include "language.h" #include "elf-bfd.h" #include "expop.h" -#include <unordered_map> +#include "gdbsupport/unordered_map.h" #include <ctype.h> @@ -434,7 +434,7 @@ typedef expr::operation_up binop_maker_ftype (expr::operation_up &&, expr::operation_up &&); /* Map from an expression opcode to a function that can create a binary operation of that type. */ -static std::unordered_map<exp_opcode, binop_maker_ftype *> stap_maker_map; +static gdb::unordered_map<exp_opcode, binop_maker_ftype *> stap_maker_map; /* Helper function to create a binary operation. */ static expr::operation_up