| Message ID | 20250317-replace-std-stuff-v1-2-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 B3E183858D3C for <patchwork@sourceware.org>; Tue, 18 Mar 2025 02:21:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3E183858D3C 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=CHXoHoex X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by sourceware.org (Postfix) with ESMTPS id EC2D63858404 for <gdb-patches@sourceware.org>; Tue, 18 Mar 2025 02:15:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EC2D63858404 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 EC2D63858404 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742264101; cv=none; b=shG6z+fqs/ngmkhsMB9lhUMQ6qmCsfUaSZPtUpfSY3SnrkAL9TADYBfcXfWQxo7YrUCK52NBKdD9ICO8/YUuHKaPSJeJOHI5SMo8D5Mc/nt1DT6nmhg22WT1kPDTOjMkBmri4gIsfWJ6wYEA8uw5YR0nbQ66br22uO55/0/GQMs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742264101; c=relaxed/simple; bh=wxfPnf2apViTHUzyl/cevjx5bPveX9sZlmIJD3W5hW4=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=WZqmZdWlx7GEDXlNPA+G/uUAp43DdLg5Yp8eOlDMK2mgq+ncp6xA3uqDW1G6s5A1CUvU82LuGK+fmUId9N7S+XZefwiDVdJ3H05GMroO4o+nyBv+uFJrM1XvF5g79K32r6IdnQtUrabaMOSwdvNIc1os+z9GOSDnlGvbcWXlsLI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC2D63858404 Received: from eig-obgw-5004a.ext.cloudfilter.net ([10.0.29.221]) by cmsmtp with ESMTPS id u7TZtE1Erf1UXuMTst4Akf; Tue, 18 Mar 2025 02:15:00 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id uMTqtciPcjrgquMTrtZWea; Tue, 18 Mar 2025 02:14:59 +0000 X-Authority-Analysis: v=2.4 cv=PK7E+uqC c=1 sm=1 tr=0 ts=67d8d723 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=ItBw4LHWJt0A:10 a=8FP1lo1DdbyQ7a3M6qUA: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=wMstBsjBrsE4/FqwdCpP6LE/EFJxxJq36ixXYvoJxB8=; b=CHXoHoex64v8bpudgttIuhVTYr JIBevZHBEOF+gyIc2ikeI6rsvP19rAKEl+YJ4H36waH3ohmzpu+LpBENyjwSUlyKQLlNOaAE5kiTh hyn1tnv9o1we22dypcZpUEzNT; 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 1tuMTq-00000002cIx-1sbH; Mon, 17 Mar 2025 20:14:58 -0600 From: Tom Tromey <tom@tromey.com> Date: Mon, 17 Mar 2025 20:14:55 -0600 Subject: [PATCH 02/19] Use gdb unordered set in breakpoint.c MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250317-replace-std-stuff-v1-2-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: 1tuMTq-00000002cIx-1sbH 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: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfDkqwSShZWiiai/YVB0B1Rm5foYbMO59nS+UtIxIotb7LR29uheB1amAnqgvaTvc10XhRCP8c/R/M8R5WJiPsG40doWwquewEv5hTD8Eomvv1zCGDG22 uROt5SGN7S+pn/nO1ns0hSEVcye5Ni2JXx61vZ/tisT9senRoCnoDd/bobKrOE8plS9hWSu+0pWxa4bk57UhUo5vTPNcXMIwHio= X-Spam-Status: No, score=-3017.0 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_H3, 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:14 a.m. UTC
This changes breakpoint.c to use gdb:unordered_set. --- gdb/breakpoint.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 34e32303b02c38a35f0680c06c3020ec66aa3e58..3085ca111bfc20bf331ffa6f099e9610997e907d 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -70,7 +70,6 @@ #include "tid-parse.h" #include "cli/cli-style.h" #include "cli/cli-decode.h" -#include <unordered_set> #include "break-cond-parse.h" /* readline include files */ @@ -7860,7 +7859,7 @@ check_longjmp_breakpoint_for_call_dummy (struct thread_info *tp) /* We would need to delete breakpoints other than the current one while iterating, so all_breakpoints_safe is not sufficient to make that safe. Save all breakpoints to delete in that set and delete them at the end. */ - std::unordered_set<breakpoint *> to_delete; + gdb::unordered_set<breakpoint *> to_delete; for (struct breakpoint &b : all_breakpoints ()) {