From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id lHbbKvBOPGkBTDsAWB0awg (envelope-from ) for ; Fri, 12 Dec 2025 12:20:48 -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=EO4OcOeV; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A2B131E0B6; Fri, 12 Dec 2025 12:20:48 -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 2539C1E08D for ; Fri, 12 Dec 2025 12:20:48 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 98C884BA2E23 for ; Fri, 12 Dec 2025 17:20:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98C884BA2E23 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=EO4OcOeV 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 785A24BA2E1C for ; Fri, 12 Dec 2025 17:20:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 785A24BA2E1C 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 785A24BA2E1C 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=1765560012; cv=none; b=vxL8OkhnrEQLk2rpkVG+ZaEPyz7AlTSuop1dUR1aUYfQKOmThjbqV68nQHimO9myXvWwPDcfsGiqWrQcvfBxqYrimjoUkDPqrizGga64GWTUSJMlRe4BaNjosbfECFGPwWh0p9L0eVuQQH/SY3/CKHzCtapPFvQBsBeJDGwicqE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765560012; c=relaxed/simple; bh=GYJs4RLsvzQv78LkFLU5LoT48QpMcFS8ps0ZlG39pFc=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=VlVk+X2jvD9DGhe4XLB+k0AhNnHiRsOLVfSMw+Yx9pf5/BguiTq1WJ7OMQ06BfiKa4+EIj8SXmlInzXcZ5IkISBmq5h/6orUcKiEEdwxObPrsUyeE2SrBKFqR+dVj0MholzADBFU8DzEVTGz5R/cl5cI8jRBxrUEeeHKEwbIzsI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 785A24BA2E1C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1765560012; 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=qoyc5c2JA33VU1uR8bx3X0kgXARFvIvE9l7AehwBrg0=; b=EO4OcOeVY1+cq3Eu2CJmL9GXaWsY1cubydQEmWCTNSCD4f1lt7HvfytBS1LA4JS9vnj2uf gYA4w+QhAc2mXgEoJRkD7HLWkYIp0jUg+2K/BRHhedwjf8mWVi3O4ye6fPTWXuuYwrcdVU VLb/Kzc0wmoqpavgla6WDnJb7Rv+3PY= Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-477-UAGYIMFJMB2A8emrdnM2XQ-1; Fri, 12 Dec 2025 12:20:11 -0500 X-MC-Unique: UAGYIMFJMB2A8emrdnM2XQ-1 X-Mimecast-MFC-AGG-ID: UAGYIMFJMB2A8emrdnM2XQ_1765560010 Received: by mail-oo1-f72.google.com with SMTP id 006d021491bc7-657a467228eso2082185eaf.0 for ; Fri, 12 Dec 2025 09:20:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765560009; x=1766164809; 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=qoyc5c2JA33VU1uR8bx3X0kgXARFvIvE9l7AehwBrg0=; b=T7ye2rvjqGLzFX07WBeSIwHHr3vHsi2XfuHzpIfdS5m1O0cH/RNp0BHapnBzxlHvCF wvQkqyGn7Fm1oAK3lRBxTU+1o+DZ+qWWz1QmTBn2TtNjiMzkO+K6LRsi9pRtD9U2Ohfl uA1F7cqYUUMqMPolA/tNsprfubbNYriZFE8Lp55buCxo5K1OCGNm/T4FnBdBNGwELU6D HkcHlDSnJ1NTCHDSLWx99LJOxQ709FGtmaLwYYsdustvyymCnoRBHVdRh91gNEd/YXOG 3MjyRArgLzM5FXe6kLfSZVMD5j30K1yDdWR+I+/4Pc52fHpbtHFDDWz0ny2D2lHPfvLw Hg6A== X-Gm-Message-State: AOJu0YyTtmMZFJ8SDp0b8x58LsXDHeF6ViGxTgSZUqUPVnq39ltojeaz brLj9Wn6+ydfAS1bXCloLQJ6Tblkomvm3Jyp0RPh3USRP3Mb/pjaYpX3KmJL5KTZ5BZ5Me5THTz sFLLX5CFzancYmgVY8q0DtPdatl3LtFoxmRoEEfuQxkwtWLhFpQxRnUYbC0hBP1t7xiS0apqFz+ puYAm2j+jW4nwGa9A4CcZGAe9nJ5iYnzD4k+VNNErlCay3681E X-Gm-Gg: AY/fxX7sNo8CM4y//QqXWZOc48dS67csyuVCealHlTW1o7NGx3iJXIUCalFL+RfcPOI f+YL2XxgxbQCwhDokCkGMm5fJAHII8S4k6gY5xC0LWnKX2hFoRB/uQmw6aP5hbMU/s6lpSRFWNZ xP41r3zgSIbq6KL4eePXeAMiVyeejTomJWGklmuiXu+EPvq66mM8FZxV/I4PbgVLtqO1ybbq20+ jOtN+vHPUBVJEkCu7Jlot+M3Q35mUPJscSy9BNaIVMHOCx5UDmUmnzZlVWtPMpVnsbeg4tn9nn5 pWSWOJmE0B1tmKZ6hHOKgCrMeKRfqTrO8B4AgvCJETYjN8fdSmU0Ieqdn6rkn99Pqz48CLjecOl P7R62mkuZZL2aUaD1mnM6FQ== X-Received: by 2002:a05:6820:a08:b0:659:9a49:8fbd with SMTP id 006d021491bc7-65b452576a7mr1345184eaf.54.1765560009612; Fri, 12 Dec 2025 09:20:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGw2Y5jVeQJEEvWmP5/QENf6ekFQCpUPZi+xfMCu6tmJMPT1QYKzZyfGgBoyBIqL+GbfwuVQQ== X-Received: by 2002:a05:6820:a08:b0:659:9a49:8fbd with SMTP id 006d021491bc7-65b452576a7mr1345168eaf.54.1765560009028; Fri, 12 Dec 2025 09:20:09 -0800 (PST) Received: from ?IPV6:2804:14d:8084:9a69::1002? ([2804:14d:8084:9a69::1002]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-65b35f2b589sm3152875eaf.1.2025.12.12.09.20.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Dec 2025 09:20:08 -0800 (PST) Message-ID: <29286466-51f2-46ec-b592-c54ec32fb2c2@redhat.com> Date: Fri, 12 Dec 2025 14:20:05 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PINGv2][PATCH v6 0/3] Introduce syntax for linker-namespace specific symbols To: gdb-patches@sourceware.org, Guinevere Larsen References: <20251029125831.2102647-1-guinevere@redhat.com> <0fe8e6ab-5852-4f14-9a02-8f92cd9c5d6a@redhat.com> From: Guinevere Larsen In-Reply-To: <0fe8e6ab-5852-4f14-9a02-8f92cd9c5d6a@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: CRB7baqoxri8NfzpRz-Ta8d3OJhNX1250DrRnvQCPDs_1765560010 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 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