From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EST7NDR1qWlKfxYAWB0awg (envelope-from ) for ; Thu, 05 Mar 2026 07:21:08 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=FPJH9byg; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D492E1E0DD; Thu, 05 Mar 2026 07:21:08 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 087571E089 for ; Thu, 05 Mar 2026 07:21:08 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 247E54BA2E3D for ; Thu, 5 Mar 2026 12:21:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 247E54BA2E3D Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=FPJH9byg Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id D3AF84BA2E09 for ; Thu, 5 Mar 2026 12:20:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D3AF84BA2E09 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D3AF84BA2E09 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772713241; cv=none; b=ruLHnn4e1fSiawwm9meYtA6QU3jdFsUBmlRKy9zJvrSkCyGGknnTFQLtVGp3k7/GsRBkGfITe5K+7ZAEx6IwNeSMYOpq26dYpjPQhWwQfk/VTbiODCWXy85nGkurBiKlL0rMlMDDSrWqUp3ufzyK+g8kcozW734bSGienlHWctk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772713241; c=relaxed/simple; bh=YwLhlfuOje98cf9nCwglgfJpwZeHB4q/GGXigp+8Q6A=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Zvw7Gg46MjED2P0oadxGq1fBbXiJ11rJfSuFt6CyPEQA7nhSY3OgNX7+5QSpQOw3HfVRHHXY03wsGdICVs/7ajFrTHAt5UYP+BZBSrxuNnL0cFNsylHKKwCo4gXkltP4LHXUk5cuVaEhhg90+YI3NkL6/JFpC0jv9Ac5A4oIIkU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3AF84BA2E09 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1772713241; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lUuxFrRbj2yXnQqrSwuz9GlPzJ4LYcltNwJCIbEjV1Q=; b=FPJH9bygx3O07KwKChmgg3yS6gMsVGxB4QzhQp+MU9FvdmPl5wA1ZatFUIEki0sgy8SevC zK1kY6ZarGuHLJftgAC0emliTp/ARR2nH5q6k9daBU+HyrppIRiREkHQ6AX3YwHfEkliu6 iIkUOncVn002ZScWF9fk0rFw5+4NGls= Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-473-iyD-m7s3NMitfc26RJz89w-1; Thu, 05 Mar 2026 07:20:40 -0500 X-MC-Unique: iyD-m7s3NMitfc26RJz89w-1 X-Mimecast-MFC-AGG-ID: iyD-m7s3NMitfc26RJz89w_1772713240 Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-5ffa9d879e7so8760653137.2 for ; Thu, 05 Mar 2026 04:20:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772713239; x=1773318039; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lUuxFrRbj2yXnQqrSwuz9GlPzJ4LYcltNwJCIbEjV1Q=; b=vntZZ45pQB+8sSUXBVlblNbHQegXBQLV+h0xJKD74z7csWPywBcso+HyaOlBYkxLhc MoF14NUmOxapRTkZqzfht7ZCKhYP6wRWlRiFHWhvtzXjztmH2Lvy97TKpZ4kj5X3Tv8q sbu6o808o5v15H/biF3ogegYBOWxCfOOykgzrMi5kbUcHmLZIWchZg8/PaY6JvUGVOv8 rd3/u3taVJYLMKiB4+gWvnT5bTflMHV24fgNoNlDXS/44h4UPeSU1TBVNNEC1AI7RGbO JgAxS29n8/VkZP38v+9elooLgLJnhW5TNDhPVhWOquLRuDL6NBZVs5izcYKyprQfESvb c5Iw== X-Gm-Message-State: AOJu0YyLDeJVfjG54jhxSHKN6tjXgLw97avDiIyW6R6CXyeiVeCpNM9r q0pKAF88Yf7UGTChEIOWAsxfsl/chmqP+b37uywRQeOr5XvCYZPECT4FekyFryv0XoaN2RMm1JN PRn8nF31fMBoS/iDlww2Tiyv4jms3bc7ZZiUlidbaVwwkpY1BfqgRKGvSZOD587ugRpRXPq2AZf O173dzA9DOLD/x/zAQce32cT2ghFtE8le5UPNO9lThv1zfeD7Z X-Gm-Gg: ATEYQzytxTQqVzFQwx9O9R/an2419g92xhQAsCO92bxh6UC5t6mIqD1sCRrL2DFa9zJ gsdnqDARJRl2AeprhmLkbQZpGGcBEflSSjYJG4+LtJ16bSTZ0wxttGWC/aKsfGaVc78O6/jQeHa uZjh6z/86r0O07sFd92oDEkcqeCFoJJe1P0YgDcJAwcCM/ObplTK9fAlusS4UM7bA98TilcQd0H yn/3A+PbpqB+n70sedQ/99JmFGZ0jxSJTD5uSqU3RqrRYkGDrQLjt9M5XFtMbRbaekdjJ9Q7Agb 2uf03bCJNAgSxN7k6DOdjNsaBRlZp5G7btnULzrsnexwPshSbVXtG9SNiAGHpPLatkYfgIomQ2b jz2gJkuN1AqmI4WRcQGznkqnYCKoXIkc= X-Received: by 2002:a05:6102:160b:b0:5fe:12c9:6e5a with SMTP id ada2fe7eead31-5ffaac7dea5mr2705879137.12.1772713239518; Thu, 05 Mar 2026 04:20:39 -0800 (PST) X-Received: by 2002:a05:6102:160b:b0:5fe:12c9:6e5a with SMTP id ada2fe7eead31-5ffaac7dea5mr2705861137.12.1772713238808; Thu, 05 Mar 2026 04:20:38 -0800 (PST) Received: from ?IPV6:2804:14d:8084:993e::75d? ([2804:14d:8084:993e::75d]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-5ff1e7afde2sm23380826137.1.2026.03.05.04.20.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Mar 2026 04:20:38 -0800 (PST) Message-ID: Date: Thu, 5 Mar 2026 09:20:34 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PINGv3][PATCH v6 0/3] Introduce syntax for linker-namespace specific symbols To: gdb-patches@sourceware.org References: <20251029125831.2102647-1-guinevere@redhat.com> <0fe8e6ab-5852-4f14-9a02-8f92cd9c5d6a@redhat.com> <150dc28e-3b3b-4ca4-826d-3a0c46773376@redhat.com> <94a86a21-a7ef-4f2b-9f3a-a84f0c2db4f9@redhat.com> From: Guinevere Larsen In-Reply-To: <94a86a21-a7ef-4f2b-9f3a-a84f0c2db4f9@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: nA93tztfSQNiIGvViYKiBNjkGTYZSN0GZzJzN1VejAg_1772713240 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 Ping :) On 1/14/26 11:11 AM, Guinevere Larsen wrote: > Ping :) > On 1/6/26 2:17 PM, Guinevere Larsen wrote: >> Ping! >> On 11/27/25 5:30 PM, Guinevere Larsen wrote: >>> Ping :) >>> >>> On 10/29/25 9:58 AM, Guinevere Larsen wrote: >>>> This series adds support for the syntax [[N]]::foo to find symbols >>>> that >>>> belong to specific namespaces, while also making GDB's behavior more >>>> consistent when a namespace is not specified. This needs one >>>> preparatory >>>> patch and 2 patches actually implementing this feature >>>> >>>> Patch 1 is an essential fix, updating how we calculate a variable's >>>> copy >>>> relocation to take linker namespaces into account. >>>> >>>> Patches 2 and 3 implement the new syntax, adding the necessary >>>> supporting code and updating error messages when symbols can't be >>>> found >>>> - where it made sense. >>>> >>>> Changes for v6: >>>> * Rebased on master >>>> * Fixed a crash when using the [[N]]::foo syntax before starting the >>>>    inferior >>>> >>>> Changes for v5: >>>> * fixed crash when getting the value of a variable before the inferior >>>>    starts. >>>> * Rebased on master >>>> >>>> Changes for v4: >>>> * Fixed final documentation feedback from Eli. >>>> * Changed error message when [[N]]::foo::bar fails to find 'foo'. >>>> * Fixed build breakage. >>>> >>>> Changes for v3: >>>> * Removed previous patches 1 and 2, as Simon's recently merged patches >>>>    already did those in a better way. >>>> * parser_state now also takes the current solib_ops, since that >>>> can't be >>>>    obtained from gdbarch anymore. >>>> >>>> Changes for v2: >>>> * solib_supports_linker_namespaces now always expects a pointer. >>>> * Previous patches 2 and 3 were dropped. >>>> * lookup_minimal_symbol_linkage now takes an array_view. >>>> * created new tokens for [[ and ]], to ensure that [[N]] looks like >>>>    that. >>>> * Fixed formatting nits from Eli. >>>> >>>> Guinevere Larsen (3): >>>>    gdb: make lookup_minimal_symbol_linkage work with linker namespaces >>>>    gdb: Make the parser recognize the [[N]] syntax for variables >>>>    gdb: extend the [[N]]::foo syntax for files >>>> >>>>   gdb/NEWS                                     |   6 + >>>>   gdb/c-exp.y                                  |  88 +++++++++--- >>>>   gdb/doc/gdb.texinfo                          |   6 + >>>>   gdb/dwarf2/ada-imported.c                    |   8 +- >>>>   gdb/linespec.c                               |   4 +- >>>>   gdb/minsyms.c                                | 139 >>>> ++++++++++++------- >>>>   gdb/minsyms.h                                |  17 ++- >>>>   gdb/parse.c                                  |   3 +- >>>>   gdb/parser-defs.h                            |  39 +++++- >>>>   gdb/rust-parse.c                             |   3 +- >>>>   gdb/solib-svr4.c                             |  20 --- >>>>   gdb/solib.c                                  |  86 +++++++++++- >>>>   gdb/solib.h                                  |  19 +++ >>>>   gdb/symtab.c                                 |  76 ++++++++-- >>>>   gdb/symtab.h                                 |  15 +- >>>>   gdb/testsuite/gdb.base/dlmopen-ns-ids-lib.c  |  14 ++ >>>>   gdb/testsuite/gdb.base/dlmopen-ns-ids-main.c |   3 + >>>>   gdb/testsuite/gdb.base/dlmopen-ns-ids.exp    |  65 +++++++++ >>>>   18 files changed, 499 insertions(+), 112 deletions(-) >>>> >>>> >>>> base-commit: 0633b78640dc892265d148f24881d544d4ddd16e >>> >>> >> > -- Cheers, Guinevere Larsen It/she