From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id PIz9H47n82dcUyoAWB0awg (envelope-from ) for ; Mon, 07 Apr 2025 10:56:14 -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=aga6iTaI; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 68C161E0C3; Mon, 7 Apr 2025 10:56:14 -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 1E32E1E05C for ; Mon, 7 Apr 2025 10:56:13 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B023D38460A3 for ; Mon, 7 Apr 2025 14:56:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B023D38460A3 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=aga6iTaI 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 AFE8C384A02D for ; Mon, 7 Apr 2025 14:54:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AFE8C384A02D 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 AFE8C384A02D 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=1744037694; cv=none; b=EB37zcFXhzHpAWrskiY6mlYMUrkCGfMrwzK74VTgH94Fei/XJmiuobb7YxC69mJ/MeSMs5itXmMhPND1eDSkOfBxxKla0YBnSDz9ncLcbcKNzyK54DGplDoVd0adsp8gf9CgJXdDaZ8SCYImMQ57lFF+pVZnljZJcwY1I2boQF8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744037694; c=relaxed/simple; bh=CHtJPjAKTicO7WvNh6RJ3g/niLdLg8A/1mueOo8pCxE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=STnbm9W7GFHH+UJg/JY0bEZuA7tWBo9U9D213F49ZMAal5bZgY0B5iK2JQmeBUM+wGO1GwX80zMUpGN4kDWwjkt0/qRlAtz172vgCRpUpgqACeKS6SRiSAbPZku2G1+Odi91/deWrbEGy5ViB43Mxg62PluNTfkPCSZ1DaB15cU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFE8C384A02D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744037694; 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=Q1GJ4R0jUs4UEJo0T0o09C3WJym8j6f5BtZ/k3iEZi4=; b=aga6iTaInFOW+E2fKLVGBRHq09QXpMSCBiSL0So/7dY1mYUz5Wf1BRSalFukyyr0PwbdTg KTPktpdj5DXNsfG+x0wmfDGFF6jOGGiai1vuNeVQR1njJmqJFXw3KI7GSqWOMCjUVBB/WK 4NiojbKg109k7ugSMwBWbRtTmGTe3mQ= 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-649-pU83gxHcNXCY2ZCoXxO96Q-1; Mon, 07 Apr 2025 10:54:53 -0400 X-MC-Unique: pU83gxHcNXCY2ZCoXxO96Q-1 X-Mimecast-MFC-AGG-ID: pU83gxHcNXCY2ZCoXxO96Q_1744037692 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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 845BE1800266 for ; Mon, 7 Apr 2025 14:54:52 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.96.134.159]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 28BD01801766; Mon, 7 Apr 2025 14:54:50 +0000 (UTC) From: Guinevere Larsen To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: [PATCH 0/3] Add some linker namespaces conveniences Date: Mon, 7 Apr 2025 11:54:40 -0300 Message-ID: <20250407145443.1895323-1-guinevere@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Mas-hAtGE0NwH-L-1ijYOn5FnJbPTqwBJI7etHvZX04_1744037692 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_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". 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 | 10 + gdb/doc/gdb.texinfo | 27 ++ gdb/solib-svr4.c | 55 ++++ gdb/solib.c | 264 ++++++++++++++----- 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, 456 insertions(+), 60 deletions(-) base-commit: 29bff2380e4bb9f5637efbdc46520ba2b01f04e3 -- 2.49.0