diff options
author | Guinevere Larsen <guinevere@redhat.com> | 2025-03-21 16:35:07 -0300 |
---|---|---|
committer | Guinevere Larsen <guinevere@redhat.com> | 2025-04-23 09:44:52 -0300 |
commit | 6a0da68c036a85a46415aa0dada2421eee7c2269 (patch) | |
tree | 033135516ebdf664a83496cca8eeb6b9fe69586e /gdb/testsuite/gdb.python/py-format-address.c | |
parent | 3559d59953b19f44e7d23c211c2bcd4ff3c81321 (diff) | |
download | binutils-6a0da68c036a85a46415aa0dada2421eee7c2269.zip binutils-6a0da68c036a85a46415aa0dada2421eee7c2269.tar.gz binutils-6a0da68c036a85a46415aa0dada2421eee7c2269.tar.bz2 |
gdb: add convenience variables around linker namespace debugging
This commit adds 2 simple built-in convenience variables to help users
debug an inferior with multiple linker namespaces. The first is
$_active_linker_namespaces, which just counts how many namespaces have SOs
loaded onto them. The second is $_current_linker_namespace, and it tracks
which namespace the current location in the inferior belongs to.
This commit also introduces a test ensuring that we track namespaces
correctly, and that a user can use the $_current_linker_namespace
variable to set a conditional breakpoint, while linespec changes aren't
finalized to make it more convenient.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-by: Kevin Buettner <kevinb@redhat.com>
Diffstat (limited to 'gdb/testsuite/gdb.python/py-format-address.c')
0 files changed, 0 insertions, 0 deletions