Message ID | 20250108-linespec-state-cxx-v1-0-a721e95ee050@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 4ADC53858C60 for <patchwork@sourceware.org>; Wed, 8 Jan 2025 07:25:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4ADC53858C60 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=SBhoNeLF X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 244033858C56 for <gdb-patches@sourceware.org>; Wed, 8 Jan 2025 07:23:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 244033858C56 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 244033858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736321007; cv=none; b=eAOsMtfrhK+eFPKPFj/+8arzUXKVGFPNmKNRT9UWanvCENsVg09LROAexuFt8LUaaolgnIliRzJBiF6XHB5VTLyO0uzlXnlAcTnpHoOrcMVJglxIf9kXRUeBhMwXtU6pnLnCkfhS5JT7I5IZd683s2hP4ajkLkCdoTiM6ucSRC0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736321007; c=relaxed/simple; bh=ONCbv6t9Kw42rCKbzPac//NJPfwuETXRoqAawWRxE8U=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=ku03qmcl71C6fc4/qP573zSPZm45uTluhx5DxHkKZBLi8SE/SLE803VLQNWYqqzzvImmEFwAZgEADsJVm/35ti3JzfGtYttlBD3dWqspbGCUE5FTiwZDqhKn5T1hxXJiRHYa6vTYIjKfLjuqIXzfl4O16nyLWHCn1/Kz6zPwVvg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 244033858C56 Received: from eig-obgw-5005a.ext.cloudfilter.net ([10.0.29.234]) by cmsmtp with ESMTPS id VChrtMYb2qewVVQPWt3wmM; Wed, 08 Jan 2025 07:23:26 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id VQPUt2tjXXugoVQPVtrieb; Wed, 08 Jan 2025 07:23:25 +0000 X-Authority-Analysis: v=2.4 cv=A+anPLWG c=1 sm=1 tr=0 ts=677e27ed a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=VdSt8ZQiCzkA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=3fG9MDNCnBRsve3NelwA: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=9entHTufEv4waM4qH2dBRwSSXdAAp92IOn6GTr6zqBE=; b=SBhoNeLFOdpzIGaoKIhDdywes/ g5oibmdKSpb/HnS7cN7CBZJf1U5EI1CzZxVR/CCBbsAJmEYxZNTkNH3NWQU/Sz60w9FzDXbmqpARL aHLMgDdEafCxoGJHYEYfPo1OT; Received: from 97-118-36-154.hlrn.qwest.net ([97.118.36.154]:56396 helo=prentzel.local) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from <tom@tromey.com>) id 1tVQPU-001pZ1-1O; Wed, 08 Jan 2025 00:23:24 -0700 From: Tom Tromey <tom@tromey.com> Subject: [PATCH 0/6] More linespec cleanups and C++-ification Date: Wed, 08 Jan 2025 00:23:20 -0700 Message-Id: <20250108-linespec-state-cxx-v1-0-a721e95ee050@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOgnfmcC/x3MQQrCMBBG4auUWTuYFLXFq4iLJP62A5qWmSCB0 rsbXX6L9zYyqMDo2m2k+IjJkhv8oaM0hzyB5dFMvevPzruRX5JhKxJbCQWcamU/uNEjuctpiNT CVfGU+p/e7s0xGDhqyGn+rRaVSfLxHaxAad+/p+7fc4QAAAA= X-Change-ID: 20250108-linespec-state-cxx-17081ec0647b 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.118.36.154 X-Source-L: No X-Exim-ID: 1tVQPU-001pZ1-1O X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-118-36-154.hlrn.qwest.net (prentzel.local) [97.118.36.154]:56396 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: MS4xfCeBtx3bXGbBrVVmt3TdMDkljSeGgKDnbt6IIks2WfeTD4z9dc3ENwi4YixR9acmoUUYc8EjXlTwgoYPg9sNtxUvgo6AeMSaNsKx0L8gUKbCSyrslWeq fith4fmShunUOX+IHO5ugfMMXMVAI4PTlBSqDNIZttJ7xKtq7RsGAAeBfaWOUSF26Ok2pf+pszfcMPBzeY8NY2upvqmu/ouTOVg= X-Spam-Status: No, score=-3013.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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 |
More linespec cleanups and C++-ification
|
|
Message
Tom Tromey
Jan. 8, 2025, 7:23 a.m. UTC
This short series applies a bit more C++-ification to linespec.c.
I also made some smaller cleanups while working here.
Regression tested on x86-64 Fedora 40.
Signed-off-by: Tom Tromey <tom@tromey.com>
---
Tom Tromey (6):
Add constructor and destructor to linespec_state
Use gdb::unordered_set in linespec_state
Use std::vector in linespec_state
Minor cleanup in linespec.c:add_minsym
Hoist lambda in linespec.c:add_matching_symbols_to_info
Use bool in linespec
gdb/linespec.c | 255 +++++++++++++++++++++++----------------------------------
1 file changed, 103 insertions(+), 152 deletions(-)
---
base-commit: 8520cebeb576ae345ae506f2d7207668cc68d1cb
change-id: 20250108-linespec-state-cxx-17081ec0647b
Best regards,