From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mNmrKNsU9GeJgCoAWB0awg (envelope-from ) for ; Mon, 07 Apr 2025 14:09:31 -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=PoIr/G11; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A2D581E0C3; Mon, 7 Apr 2025 14:09:31 -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 server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 DB7421E05C for ; Mon, 7 Apr 2025 14:09:30 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 89686385DC01 for ; Mon, 7 Apr 2025 18:09:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89686385DC01 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=PoIr/G11 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 360C43860769 for ; Mon, 7 Apr 2025 18:09:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 360C43860769 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 360C43860769 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=1744049342; cv=none; b=itWAY8m/zzrJh96eiFNXfYmTxYoU9oNKr+15j9nlQMdVG2Ny0y7z4mCUmbWR/O/NDbw2ypLxN+p2S4Q/+Fe8/jDY6w+9tnqVLYNHsSMgFd0l06QH4XGZroRf0T3khog1h8f/Pb6yr5ArKrQg5XIo8ROFgXz0BrQdklRqg9y7MjI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744049342; c=relaxed/simple; bh=XlYOIGMpvc8+zByzVGK4b7c2XbEmIuNH6ipE1tzIHic=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=pLc+9+Pa/b36gcNbkdsyJydfdqLTWyQdgEp3SSd7/rRF1/hfGjL8u302tQxCHNgrA2TJyatw/WtbjsR/mP/rFlof6uDGn5oa6D/Xy9jaqM1WeVViVGBFEUltuoIDVpfHR+gSE7UkuvHknjkwubcQznZpNI/zll8k9t32+IieWdQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 360C43860769 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744049341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g0crQD0KkfsFqUGeU3WXPktxEuXL3okWmYdKR1+O/zo=; b=PoIr/G11X9Vn+9eMzVzGtCMJ17FLHJLfxK6Q/nY1660H9LCU36cMOBAL4NKHL50aejY4wF D+GWAEL2hC9s6oqWnllMZ9yRKHvIabp9qqz4GgziRSY1ndHdx/4XtbR75unTemaKift5w0 GhD2XW0FLagaNogGfwIEzpfpb7mXwr0= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-8gngFDtPNlS9xmlBIt2JOA-1; Mon, 07 Apr 2025 14:08:58 -0400 X-MC-Unique: 8gngFDtPNlS9xmlBIt2JOA-1 X-Mimecast-MFC-AGG-ID: 8gngFDtPNlS9xmlBIt2JOA_1744049338 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 13B54195609E for ; Mon, 7 Apr 2025 18:08:58 +0000 (UTC) Received: from f41-zbm-amd (unknown [10.22.88.7]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3B26C195609D; Mon, 7 Apr 2025 18:08:56 +0000 (UTC) Date: Mon, 7 Apr 2025 11:08:51 -0700 From: Kevin Buettner To: Guinevere Larsen Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 0/3] Add some linker namespaces conveniences Message-ID: <20250407110851.18e596fd@f41-zbm-amd> In-Reply-To: <20250407145443.1895323-1-guinevere@redhat.com> References: <20250407145443.1895323-1-guinevere@redhat.com> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: S5uq6fvxnvg6z6P0mLJdL_JtCNmlJPJXXUGCdoCBNKc_1744049338 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Mon, 7 Apr 2025 11:54:40 -0300 Guinevere Larsen wrote: > This series is a second step in improving the User Experience of > debugging inferiors with multiple namespaces. It adds 2 things to make > it more convenient for users to understand what the inferior is doing. > > The first patch adds convenience variables, specifically _active_namespaces > and _current_namespaces. These can be used to track where in the execution > of an inferior the user is, and could be used in breakpoint conditions > to stop at a specific namespace. > > The third patch adds a new command, "info namespaces", to help the user > check what solibs are loaded, and where. To make the patch more > readable, the second patch is a minor refactor of the command "info > sharedlibrary". I'm wondering if we want "namespaces" to mean "linker namespaces". I can imagine someone adding a command to iterate over the DW_TAG_namespace entries in the available DWARF info and then print things regarding those entries. That too could be a good (possibly better) candidate for a GDB "info namespaces" command. What I'm suggesting here is that we might want to add a qualifier to the command and related names, i.e. that the new command be named "info linker-namespaces" instead of just "info namespaces". Likewise, add qualifiers for _active_namespaces and _current_namespaces. Kevin