From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WEi4KZPc9mdaai0AWB0awg (envelope-from ) for ; Wed, 09 Apr 2025 16:46:11 -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=bOtiPYtR; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A64541E0C3; Wed, 9 Apr 2025 16:46:11 -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 735131E0C0 for ; Wed, 9 Apr 2025 16:46:09 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1A1D73841470 for ; Wed, 9 Apr 2025 20:46:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A1D73841470 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=bOtiPYtR 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 5D5013845871 for ; Wed, 9 Apr 2025 20:44:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5D5013845871 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 5D5013845871 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744231478; cv=none; b=s3WL2dV9iG0ui5i+KwM2MKkF8dx/WjlDZRI5l3+RYcgeSQlTlG3FXh6SrlwXg7xLYDkzw9hKb+E4hgXDIrfbKwRZQ9a/SadHRBmyx+lY9apruG9xQPc2zDiJNSfh1sUxVUBsKBCAAcLRhDqVQULgJfmChuzKtYWqSFAxsEKIzgg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744231478; c=relaxed/simple; bh=ykaL+bYKW9QtGkLsf4Pn3V/X+wcCAGZsn2ZZ9FCz7uo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=xR9ap2PSo/HMtSvaaB0YguON2yB1JhxU7zcMzt77CL/F6ykokKjSAjDL2ckEZVj+t7vvBvpglGUlTo+uGCqZO41Y4U6oy5X8mGy0TE1c0OXKA9VcftG77gTv9ESkMHR425vUXyDsPD7XggRTFTujyQ/WWjP2Ori+WoHqcw17kIk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D5013845871 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744231478; 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; bh=5yBe68i47NTsWc+wlfFPIpIAqq5nCykSJag7D2HNNR8=; b=bOtiPYtRfSMtFE8VMIbjpIrRFXoTKezYJVrda5NKdiD6861dZ3We/mVldHhhpxhS4pquLF wRa8RhoIPYJ/8naUKxPTgxNvreBgynhSexaNFVHecpxftjfesskrP+tGuxqzSUJimGyPx8 HYXlPbOzNOtxMa7j2AV0FBpxc138BqM= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-294-TzKPe4BoOK-eikuP7mw5kA-1; Wed, 09 Apr 2025 16:44:36 -0400 X-MC-Unique: TzKPe4BoOK-eikuP7mw5kA-1 X-Mimecast-MFC-AGG-ID: TzKPe4BoOK-eikuP7mw5kA_1744231475 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DAC39180025E for ; Wed, 9 Apr 2025 20:44:34 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.96.134.159]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 65F271956094; Wed, 9 Apr 2025 20:44:33 +0000 (UTC) From: Guinevere Larsen To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: [PATCH v2 0/3] Add some linker namespaces conveniences Date: Wed, 9 Apr 2025 17:44:24 -0300 Message-ID: <20250409204427.1680979-1-guinevere@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: zkFmuK8OoPoEycMFIRxN9cooEoddez_7q40ypzv_gPY_1744231475 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true 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 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 v2 were minimal, only due to naming change. 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 | 148 ++++++++++ 8 files changed, 461 insertions(+), 60 deletions(-) base-commit: a650cb6b2fbcd4ff02d2bd819d3979f3e57794b1 -- 2.49.0