]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbserver/linux-low.cc
gdb, gdbserver: extend RSP to support namespaces
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 15 Mar 2022 17:08:06 +0000 (18:08 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Tue, 18 Oct 2022 12:16:09 +0000 (14:16 +0200)
commit2733d9d5d62c62023dc2d7a93fa5afa22f386ffd
tree0f300db4630b2472d9187e3a89e0c0ae5dc6ca8e
parentad10f44e568806c2399f9405f4588f3e27f7d9ae
gdb, gdbserver: extend RSP to support namespaces

Introduce a new qXfer:libraries-svr4:read annex key/value pair

    lmid=<namespace identifier>

to be used together with start and prev to provide the namespace of start
and prev to gdbserver.

Unknown key/value pairs are ignored by gdbserver so no new supports check
is needed.

Introduce a new library-list-svr4 library attribute

    lmid

to provide the namespace of a library entry to GDB.

This implementation uses the address of a namespace's r_debug object as
namespace identifier.

This should have incremented the minor version but since unknown XML
attributes are ignored, anyway, and since changing the version results in
a warning from GDB, the version is left at 1.0.
gdb/doc/gdb.texinfo
gdb/features/library-list-svr4.dtd
gdb/solib-svr4.c
gdbserver/linux-low.cc