From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WclgAA01rWqVdBsAWB0awg (envelope-from ) for ; Fri, 18 Sep 2026 08:56:45 -0400 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=K9s0RrX+; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id EF4521E090; Fri, 18 Sep 2026 08:56:44 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.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 autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 6309A1E01F for ; Fri, 18 Sep 2026 08:56:44 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E24CA4BA23F1 for ; Fri, 18 Sep 2026 12:56:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E24CA4BA23F1 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=K9s0RrX+ Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 05D7D4B9DB73 for ; Fri, 18 Sep 2026 12:56:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 05D7D4B9DB73 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 05D7D4B9DB73 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789736173; cv=none; b=F0H9XDsgZjAY7nRir6789xHMLUD7BLS8MV9yDIR/M/viKLJaTe5/7BT7wIgdcGXunXOFXDcaPFKBd+en8XjHCw5397lyCVPlfVvUmY8BfUC4raWjLPltWez9qPYWaZ8SfWQG6w43AQkq0YyUSIu8YUy42owmYj1VTvHEeBpAo3c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789736173; c=relaxed/simple; bh=Nh+zacYVQuWVYT388r1i6L/hxzCO5ONVuiT5eSGPQ+g=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=gy6Kf6JfdpdZ1y5rRX0MkNY9My6td2oJ3ClcCeVZabigNfRsB7+mAK7+4j3PUK6ITBm1spHQqS/u9G8OQ55nPXx/ocHuY6yuWFuNQMF80O+X7eqhZow27/owbTd3RU7QVPxRJzApgbq1mdEuJu+o+jGzfgjG9ajPAEqNuSi0tvU= ARC-Authentication-Results: i=1; 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=K9s0RrX+ DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05D7D4B9DB73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1789736172; 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=j/m81stWhWeEwG3yJ9zGmQXRWun25wFW+q17eZNdJQE=; b=K9s0RrX+cvkWc1XiWMZz7eWqYRqcern4DSelozpOEBN7BX0T6VmFWvj9zSvMS5hIgoWUbX uGpqitLyVTPJ1AdA65CK4TE17Kkj0o9LQ/9ZSdHeORS9qTPFUDb21ZUsW2RMJP1kJab2gU HVv5/QOfRCvgzq/KHdUE0a1DDpTwyHY= Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-173-cFBvai73MHCicWpeLLZiJw-1; Fri, 18 Sep 2026 08:55:04 -0400 X-MC-Unique: cFBvai73MHCicWpeLLZiJw-1 X-Mimecast-MFC-AGG-ID: cFBvai73MHCicWpeLLZiJw_1789736103 Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-791463ed29dso602665137.0 for ; Fri, 18 Sep 2026 05:55:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789736103; x=1790340903; h=content-transfer-encoding:content-type: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:content-type; bh=j/m81stWhWeEwG3yJ9zGmQXRWun25wFW+q17eZNdJQE=; b=HNzh4WxPLezyd3mf1TtYn3RSOxmTrQUbfQJnQkZhDYhGdTfmTuOr0W9uWuTOqPzTGA ZUYkcJFqdJ+DFX7T6TaY9KSESVstABmM28S11jD/nEMq7YXGEEk9UBRao26PWjYrgLmB 0p08TLmgAmiWHSod364A18Akk0yp4DUMjhki2i5H1H6RSrivz3lly+LbeICbPrME18Y6 WNe0ctIm8ljG6pRrGZR4mmAVW7SEjboykvO+/IjLXmiw99LvjsAmLUo9E8Vk+Yz6oxHw zXuI64C6Bn0ykzqQhJ/FTLaiIASgEslaXvrHTkoDNXLDvVu/x6d10/6d7m8tLcqTZzc8 0RZA== X-Gm-Message-State: AFuF++lIyNAGI3JDL6Uznc20Lok/1nxx108NUlBhzodxNtqsvt8WhQos p2zKFTBnzwU6YpluFcsQCyoIvs75EKnhWRm8BikYo0uQ4/npyaxXKa3H57QC7hyyFwxCHsVgZ65 PBXznnpV16pI8FtgVhzgPWVQcvEbYLk0YX7XEuFuuxHtcrTyxqMWQl618UcV+MQ26zaFHMeX6Sl AVuOBVXRBoB0EKFTJfugyF1iuXWHV4M5rYMA0Ba3uZwm5rp1WK X-Gm-Gg: AYBFou0JUwGpq0eEKASIyWUx/00YPkTEmOR+BJtKtRJFOwXUyyqo9kj5AGMdWNw9SWj XH/hoCm/Uho/xJ8PLHsBw/ru6dBbnjE3ucioXCExNkvbHIYmUL5w/yD7TJbgqJjt5F4F9quUX72 NFFDHL7ILlxHWmtSulo6JR7WlwkL7nyO3LTXsxa/Iad3NQ9XcYJcfFtD3hcFAJUcKXH9a1djeGe 6/2ujcpgMss5PNXCCpPRS/aDGrB0lR86lgysFFK7kma3/JbaZQZpZQoXPTRAhL/8hExru66WjOE UCcw+GGdzqGIfcJqGDxJEYFIYeqDiwAHd7iBvB/djW6R5a1WkQnT8JyytCk466kJlpTfAcw8ZO2 B4PdeCPeNFQ2brPpQNpwXuRQebsSip/9xR8cJmoJ38g1jJvUt X-Received: by 2002:a05:6102:548d:b0:79e:cc38:c40b with SMTP id ada2fe7eead31-7a55b5492ccmr994180137.11.1789736103478; Fri, 18 Sep 2026 05:55:03 -0700 (PDT) X-Received: by 2002:a05:6102:548d:b0:79e:cc38:c40b with SMTP id ada2fe7eead31-7a55b5492ccmr994163137.11.1789736102934; Fri, 18 Sep 2026 05:55:02 -0700 (PDT) Received: from ?IPV6:2804:14d:8084:993e:22e8:4ed1:527a:55c0? ([2804:14d:8084:993e:22e8:4ed1:527a:55c0]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-98375ecd62csm246491241.1.2026.09.18.05.55.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Sep 2026 05:55:02 -0700 (PDT) Message-ID: <619f7a39-108c-4def-a11c-19e416cebec8@redhat.com> Date: Fri, 18 Sep 2026 09:55:00 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PING][PATCH v7 0/5] Introduce syntax for linker-namespace specific symbols To: gdb-patches@sourceware.org References: <20260601192251.60958-1-guinevere@redhat.com> <356f5e22-df20-43cd-ac1b-f2d6a85a0979@redhat.com> From: Guinevere Larsen In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: YTXVcy7lj_WAdGD97Z232BAH8kbWoEf9sndiCeWECFw_1789736103 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 9/2/26 4:32 PM, Guinevere Larsen wrote: > Ping :) > > On 8/6/26 3:46 PM, Guinevere Larsen wrote: >> Ping :) >> >> On 6/1/26 4:22 PM, 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 2 preparatory >>> patches and 2 patches actually implementing this feature, and one final >>> patch to make symtab searching more consistent with the [[N]]::foo >>> syntax. >>> >>> Patch 1 is a small refactor, creating a function to figure out the >>> current linker namespace. Patch 2 is an essential fix, updating how we >>> calculate a variable's copy relocation to take linker namespaces into >>> account. >>> >>> Patches 3 and 4 implement the new syntax, adding the necessary >>> supporting code and updating error messages when symbols can't be found >>> - where it made sense. Patch 5 is a small change to the find_symtab >>> function, to prefer symtabs from the current linker namespace. >>> >>> Changes for v7: >>> * Added 2 new patches to the series, one to solve Andrew's feedback and >>>    another to fix an inconsistency I found. >>> * Minor cosmetic fixes >>> * rebased on master >>> >>> 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 (5): >>>    gdb: Create helper function for the current namespace >>>    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: prefer symtabs for the current linker namespace >>> >>>   gdb/NEWS                                     |   5 + >>>   gdb/c-exp.y                                  |  93 ++++++++++--- >>>   gdb/doc/gdb.texinfo                          |   6 + >>>   gdb/dwarf2/ada-imported.c                    |   8 +- >>>   gdb/linespec.c                               |   4 +- >>>   gdb/minsyms.c                                | 137 >>> ++++++++++++------- >>>   gdb/minsyms.h                                |  21 ++- >>>   gdb/parse.c                                  |   3 +- >>>   gdb/parser-defs.h                            |  50 ++++++- >>>   gdb/rust-parse.c                             |   3 +- >>>   gdb/solib-svr4.c                             |  20 --- >>>   gdb/solib.c                                  | 108 +++++++++++++-- >>>   gdb/solib.h                                  |  29 ++++ >>>   gdb/symtab.c                                 |  94 +++++++++++-- >>>   gdb/symtab.h                                 |  12 +- >>>   gdb/testsuite/gdb.base/dlmopen-ns-ids-lib.c  |  14 ++ >>>   gdb/testsuite/gdb.base/dlmopen-ns-ids-main.c |   8 ++ >>>   gdb/testsuite/gdb.base/dlmopen-ns-ids.exp    |  83 +++++++++++ >>>   18 files changed, 570 insertions(+), 128 deletions(-) >>> >>> >>> base-commit: 909db30adab1688870e978c85d014d4a36641f4e >> >> -- Cheers, Guinevere Larsen it/its she/her (deprecated)