From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oQlwLEht1mr0GzQAWB0awg (envelope-from ) for ; Mon, 19 Oct 2026 15:19:36 -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=Aa+vFWUs; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B12151E050; Mon, 19 Oct 2026 15:19:36 -0400 (EDT) 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 D8ECC1E04D for ; Mon, 19 Oct 2026 15:19:35 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7089F4BA23EA for ; Mon, 19 Oct 2026 19:19:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7089F4BA23EA 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=Aa+vFWUs 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 372A04BA23CD for ; Mon, 19 Oct 2026 19:19:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 372A04BA23CD 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 372A04BA23CD Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792437549; cv=none; b=h5xdadUwPV0+bKMnjrELMiH3lOi0qsSln6915U51OJEBgyCPOzSEX9MvJdtjSM4sBiqMJn9UZTNJcIO6YnmI+pHxL39noLrPCnCo7kSYYz0CzRaNsvAtoWOQ0fkp0UH+T201/4tMQAhXN1N6F/ruGt+NVqRPKWxmLFyxTNAMeGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792437549; c=relaxed/simple; bh=Nh+zacYVQuWVYT388r1i6L/hxzCO5ONVuiT5eSGPQ+g=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=xJJxJa+MKNRuMf0t1De/YknnRljEKhcEUyl9h3kvdufdzW9j3Be8zBWmjAb7KvBhnRSzkwXE4Z4xnWzcndscgqnj2UzSVbozOPHABbSAwIb5ikdfVsL0XONXFYKI/Bi1Ck7NHoAa2sNS03y0cfBvZA4M6KxN0vUCRJnEJt4soLQ= 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=Aa+vFWUs DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 372A04BA23CD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1792437548; 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=Aa+vFWUsEJK2TxOP4FjrfupUG43dxPeYpg4iVV1JxmkD60ec08PMaPDMQHM+QwXVqtua9J AQRTmUAoe0B7e9hOtGIEaXw2Ph2jYAX+6a7V4tP+XzV9FJWYzF9DSeiASIkqfLumprtz1G MhJdyfBVAAS3XVsm13CHW+KDzjtJQ28= Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-561-owbyj_XOMnux068kz1-Lyg-1; Mon, 19 Oct 2026 19:19:07 +0000 X-MC-Unique: owbyj_XOMnux068kz1-Lyg-1 X-Mimecast-MFC-AGG-ID: owbyj_XOMnux068kz1-Lyg_1792437547 Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-98c6374b678so1936492241.3 for ; Mon, 19 Oct 2026 12:19:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792437547; x=1793042347; 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=aOI5UkE5EN8XjxUKu6wIQu9LjKD3CB3FmEa+5YH4uj3PR8AFB1ZZ0eA2iwZEhjZooR 3OEbiqWtv+mP2vSS9cHqrZpIr2cf1ll/dXeD7+DG+41Ed6BPysvURmVeyetD6Ubhxd/z 5dXWsrBkO8HRzuUIucoqvfDfNtARHQ/S+Hmt+8H8bJ1O50qYHlnJj0E2/NzrdvASsilC iK3NWigSW8gMdBfxNTQxIkxu+hZG9YagOcWI+1wCsMLsrSU2lkRl6Sv2RFxE4OqqjBme TS6MJaUp+L4DTUtEXXcLu6YonBFEanbMbxXfckCPRgZ/tB5QXOEKdPfG+/6lIsG2R+aR GuBw== X-Gm-Message-State: AFq9FYJBaxj/Der+0wUGLnqIvVeDiZbj5Jb2lL9z/zejybhVvNSxZ8ts LOZW3PSSEjoRl924CmC0xlkLW6ERYwQmKh+dWIqSqFwOeIGX6wlXvbm7zm40FzphV1WB3NLdipp EZ4MXLYQtQYNUVWLFJyyBhlyClE3TFwmTQkR+dbybZ32A2JcLtA71JuZP/U7EHKFYGKEOktum/S 0yuB9wbMeQBNcIEFPw53x28B7Y6AKctvh6oIHSxiH/iSnwJO62 X-Gm-Gg: AYBFou3WYV7PrI2rFom5O8KNcUxqW62xSepWjK/9kSuDxzoIQD8QqHKw7UfS0IJ1AAT hTNBlJIdvtNlTYfJeZhdMAQAon8BeuDYODbfY9EKmeyyk1r/X3kWluzCzQUH++DEs9Zdaz0bxzy UCHbI6MacQdUswstkkCi8E/KEm3PWf/D3GcDqQjYu8BDR3ftl32Y8QGST4Jx+YrIxsWl8ojsRCp FUqiYyKhGrWIIDM2rLrw5I/DH8A8CBNgtoXb83bC1qaZ4EB243fezOMYdceMIvzoo2118UFQ5zG jtVFo6UrHefdtHSEktkqc4PqMDTQbXP+AyU69gNr7yGoU0FSH4xMIn8VoS2zvBUEoNVj3qD5GGK PtIlF5FVo+Do1GnqJ6U+vk2TzO83czUAReikjfK8bq/P4vrBF X-Received: by 2002:a05:6122:d94:b0:5ea:9be5:a854 with SMTP id 71dfb90a1353d-5eaaa65c66amr3586542e0c.18.1792437547106; Mon, 19 Oct 2026 12:19:07 -0700 (PDT) X-Received: by 2002:a05:6122:d94:b0:5ea:9be5:a854 with SMTP id 71dfb90a1353d-5eaaa65c66amr3586530e0c.18.1792437546577; Mon, 19 Oct 2026 12:19:06 -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 71dfb90a1353d-5ea9b536ccdsm10705434e0c.13.2026.10.19.12.19.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Oct 2026 12:19:04 -0700 (PDT) Message-ID: <6a0127c0-684e-4eaf-ba7d-fb8a103893e3@redhat.com> Date: Mon, 19 Oct 2026 16:19:01 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PINGv3][PATCH v7 0/5] Introduce syntax for linker-namespace specific symbols To: gdb-patches@sourceware.org, guinevere@redhat.com 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: oJY3RsBZl5dL_GdaBt8Cyb3rZZKb-XPrXru_DwiqUns_1792437547 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)