From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id rWVPEWKSAWjnBDkAWB0awg (envelope-from ) for ; Thu, 17 Apr 2025 19:44:34 -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=IamfmHX/; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 38CEE1E0C3; Thu, 17 Apr 2025 19:44:34 -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 6938C1E05C for ; Thu, 17 Apr 2025 19:44:33 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8B3183858D39 for ; Thu, 17 Apr 2025 23:44:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B3183858D39 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=IamfmHX/ 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 C728C3858D39 for ; Thu, 17 Apr 2025 23:43:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C728C3858D39 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 C728C3858D39 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=1744933437; cv=none; b=GLgFmjxv06gTrbM6ZnvSpA5UoNeE4+fRmhnDPYV39ib7RYqq3ZyQrltPB7daby6deU3RkodtA4jx3O416ovquEZp3ShUXa0QgvBowp8CFN9/vLaGC8EMsRwaxqBWETnLX67DYrZ0xzeVMPxq8U/4oAOi/kti8zHynpA4wbuf8jY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744933437; c=relaxed/simple; bh=HsnT0VPVudTyI/DpyYynrhMMMU1Ry+qfeF5XzZu0cYU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=bTWlVnf8xF11A443qHN0+NHBhI7q/u6r3jR876Y+xgKCJxDkNYg7hUnkKld7gbQzSGkQoNXbpJEes6AU6zCEpf12ChCJx3L+7lQghhiQIJH4xyNm5tA11X+kvG5d85zOmvNBYlVgWqOA5BBa7XBx0MGwXZLtOwFK8SgabJqu/BQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C728C3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744933436; 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=x/6Sv0wus4eIkI8Y0dVgNN71Q1YfGib4LqJJ7ns8rwM=; b=IamfmHX/KO3nFxJBjHjdLP/30VT1pIK6anX53CnbhzXU1xBPCfLWmS929H7VWQaYKahidw wsZw1/7DdrGKzN7BiDgqXN0Mb08TqdauP7DSWBWh0Fa2uDbQDAhu4HTvlSANaSzzV3r//e L2Ompb/Af2TvWePFXYWWtGE3WL5He6A= Received: from mx-prod-mc-05.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-439-7tAW9ILMPxioUZIYuPaUjQ-1; Thu, 17 Apr 2025 19:43:55 -0400 X-MC-Unique: 7tAW9ILMPxioUZIYuPaUjQ-1 X-Mimecast-MFC-AGG-ID: 7tAW9ILMPxioUZIYuPaUjQ_1744933434 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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 938F61956088 for ; Thu, 17 Apr 2025 23:43:54 +0000 (UTC) Received: from f41-zbm-amd (unknown [10.22.80.11]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A2F7A19560A3; Thu, 17 Apr 2025 23:43:53 +0000 (UTC) Date: Thu, 17 Apr 2025 16:43:44 -0700 From: Kevin Buettner To: Guinevere Larsen Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v3 0/3] Add some linker namespaces conveniences Message-ID: <20250417164344.2d2b55ad@f41-zbm-amd> In-Reply-To: <20250411175022.2379494-1-guinevere@redhat.com> References: <20250411175022.2379494-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: 4rBdqDrRmimXe1jrrc9PIoD-ZEKy68NTkcGr5nqJG78_1744933434 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 Fri, 11 Apr 2025 14:50:19 -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_linker_namespaces and _current_linker_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 linker-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". > > The documentation changes have already been reviewed by Eli. > > Changes for v3: > * Changed the final gdb.base/dlmopen-ns-ids.exp test to allow for linker > namespaces that don't load libc and libm, since some systems may not > do it. > > Changes for v2: > * Renamed new command and variables to explicitly mention linker > namespaces > > Guinevere Larsen (3): > gdb: add convenience variables around linker namespace debugging > gdb: factor out printing a table of solibs for info sharedlibrary > GDB: Introduce "info namespaces" command > > gdb/NEWS | 11 + > gdb/doc/gdb.texinfo | 28 ++ > gdb/solib-svr4.c | 55 ++++ > gdb/solib.c | 267 ++++++++++++++----- > gdb/solist.h | 4 + > gdb/testsuite/gdb.base/default.exp | 2 + > gdb/testsuite/gdb.base/dlmopen-ns-ids-main.c | 6 + > gdb/testsuite/gdb.base/dlmopen-ns-ids.exp | 129 +++++++++ > 8 files changed, 442 insertions(+), 60 deletions(-) I'm still comfortable with the approvals that I provided earlier for the v2 series. Approved-by: Kevin Buettner