From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gV6gHNV5mGpKDCAAWB0awg (envelope-from ) for ; Wed, 02 Sep 2026 15:32:37 -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=jSuvl9uv; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 662451E033; Wed, 02 Sep 2026 15:32:37 -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 [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 171C21E033 for ; Wed, 02 Sep 2026 15:32:36 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D86F14BAE7DC for ; Wed, 2 Sep 2026 19:32:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D86F14BAE7DC 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=jSuvl9uv 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 C52864B9DB55 for ; Wed, 2 Sep 2026 19:32:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C52864B9DB55 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 C52864B9DB55 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=1788377530; cv=none; b=OwVELaXuKNuLD7mMaOigwcnEfjPSCxfaCAJUo3tBbSpg7Mae1TL8jd6vPfWolMHaAOJj8PHIkNr0Raz7m43NlyGotvhsB5C4dlu/Jad9qH4B/V4jUOVKV6duTLQm1Jh/qdi1EFNfU51m519PxbMLW9kgbLfrZd6aSMxkx3mAcZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788377530; c=relaxed/simple; bh=4cPAwR2ZtOaa6JwtQqBK8KSzj3DxY+Tp4xyPZW3uEqk=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=l73FxAoQqXXmGUe9XvygyxrhvIz95dIX9o/3xS9FbeLjhOufp3p/uZHNZ6PecpuqW+cC7F+Czv+9whyasM5bXtUZoZiegH6GpRTbp6nsNjy6uG4hHHB4E3h++LdVrwYWL+K5eKI60LD2pejZKTuyy9p5sSxcihNe51U71BaqzCw= 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=jSuvl9uv DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C52864B9DB55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788377530; 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=sQCuXA50cCzL+U1lu+9FLa9iIoNCkZlFn4qpWlGniVI=; b=jSuvl9uvfI0K8wG3YZLk14Drgc07/kRY9LnfTZdzZv+o/JYE/CLN3flzJ1xo7DZ6n7VPEg CVTbnA/K9RnBiaIbFR+obmw+8k0vRy64gXOldfV2iN4MmLhChrB8ydKvbOVUGM4wy0ILrk /3WxApHH1PMsZIearWe9TYaYqZTaVtw= Received: from mail-yw1-f198.google.com (mail-yw1-f198.google.com [209.85.128.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-669-sM638m6AOwODYOww4L3RXA-1; Wed, 02 Sep 2026 15:32:09 -0400 X-MC-Unique: sM638m6AOwODYOww4L3RXA-1 X-Mimecast-MFC-AGG-ID: sM638m6AOwODYOww4L3RXA_1788377529 Received: by mail-yw1-f198.google.com with SMTP id 00721157ae682-8578f9a0975so25330857b3.0 for ; Wed, 02 Sep 2026 12:32:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788377529; x=1788982329; 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=sQCuXA50cCzL+U1lu+9FLa9iIoNCkZlFn4qpWlGniVI=; b=cdm/Cf7fKVcRlu1ZieOAr6xFLe9XrGwHssHMGjjxwZPD8hlcJCMGYkTroKbESoaIvx LwJ8bFVMZsGT8iV/eVinC5CNQzIbgPTdtvl9Nli4SvlbSi8brVSqw++eyBKDDeGXExZN cDsxNnDH3OAgaReaTsuzDOhXryK/driYnw9LHTzBuMd7r05Bgm0tmbJfgW1OOaP5ClK+ bLTUgNPonTOfUejWoXBM5CsUZsJQYKYrZGZYQp0D0w0BGTGYKV60cDcuOeZikOU+MdrX 70rsFadTHWdOE6gKZH1R56UmMuCCQfnIj0gyoyi1y+HraDSHu1wO+B2AjLPYVGnaTI3v MYRA== X-Gm-Message-State: AFuF++lQMrKGZfFsT1xTJOCvcL3yG0mHGNpQr720+r0p5xqg2XOAmUpi 99RSO9r53rRYuGTSGKRrSd/OFn0fVkAmjSDhfutPEA5glZxRA7k684zxcSouLHIM07lmIkzM/Tx ee+qrLXu+abndolbk4y050324fFrxO4ryibFr2VvKeHvs8xNdkfjJwibPugAI9XjoQQlxNs7P3l wihbGNtDXZRDa2oPJTJRsVdJRMai+6H/PZej24Kx1wj2oPYiSg X-Gm-Gg: AYBFou2DPOTfkjus2usoREa1dH+8V3XLbBz9QdBhHhnlPmqDD3ao+oweXC5arNUYgpS y2BrG3jfUeeanPmgUkUmHPQi9ieYBDWwahm3N6cM8UlSzI1GCoosVZ/VoOSepVkdObhk98ZU9QY /zzl0G87KNPXt7OD0n41sDE0IaI93vVu+Cx61iy5Pu9sUzeQjJarou/1lmxycTAD5iufyQGpeyA I4ivnFO/6EMOxrD6/QF8mPXi9nmJOiGxN4zAgOSjb3eDm7VWvv9lNBn+qY6UefT/F6pJFoZg1jQ 9JGYDtA3El6LbNy5cBPqdW1qxRZ/koPpDOglvC96Y6QcpaWIwZnWF3mAjGTZyyBSjTRlmYVUTPw VUmO8lR+JgWxbDtOvtcOGaG4+JdPrio+D/6D0Ej0JYKnXwdtZ8A== X-Received: by 2002:a05:690c:a64c:b0:866:e57f:58e5 with SMTP id 00721157ae682-86c4e201c5cmr31172577b3.12.1788377527194; Wed, 02 Sep 2026 12:32:07 -0700 (PDT) X-Received: by 2002:a05:690c:a64c:b0:866:e57f:58e5 with SMTP id 00721157ae682-86c4e201c5cmr31171787b3.12.1788377525289; Wed, 02 Sep 2026 12:32:05 -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 00721157ae682-86c1918d51fsm24710447b3.45.2026.09.02.12.32.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Sep 2026 12:32:04 -0700 (PDT) Message-ID: Date: Wed, 2 Sep 2026 16:32:01 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PING][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: <356f5e22-df20-43cd-ac1b-f2d6a85a0979@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Mn7Dh7OowfWqPAY9FfMZHND1fkWmZ-YrUnMTrgcoE8E_1788377529 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 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)