From: Guinevere Larsen <guinevere@redhat.com>
To: gdb-patches@sourceware.org
Cc: Guinevere Larsen <guinevere@redhat.com>
Subject: [PATCH v3 0/3] Add some linker namespaces conveniences
Date: Fri, 11 Apr 2025 14:50:19 -0300 [thread overview]
Message-ID: <20250411175022.2379494-1-guinevere@redhat.com> (raw)
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(-)
base-commit: 52c5091dfb18113156d645500ab86b600f1cdfe0
--
2.49.0
next reply other threads:[~2025-04-11 17:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-11 17:50 Guinevere Larsen [this message]
2025-04-11 17:50 ` [PATCH v3 1/3] gdb: add convenience variables around linker namespace debugging Guinevere Larsen
2025-04-18 19:15 ` Tom Tromey
2025-04-22 12:41 ` Guinevere Larsen
2025-04-11 17:50 ` [PATCH v3 2/3] gdb: factor out printing a table of solibs for info sharedlibrary Guinevere Larsen
2025-04-11 17:50 ` [PATCH v3 3/3] GDB: Introduce "info namespaces" command Guinevere Larsen
2025-04-17 23:43 ` [PATCH v3 0/3] Add some linker namespaces conveniences Kevin Buettner
2025-04-23 12:44 ` Guinevere Larsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250411175022.2379494-1-guinevere@redhat.com \
--to=guinevere@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox