Re: [PATCH v5 05/15] gdb, gdbserver: extend RSP to support namespaces

Kevin Buettner via Gdb-patches
2022-06-19T04:32:41Z

On Thu, 2 Jun 2022 15:25:04 +0200
Markus Metzger via Gdb-patches <gdb-patches@sourceware.org> wrote:

> 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 | 16 +++++++++++--
> gdb/features/library-list-svr4.dtd | 4 ++++
> gdb/solib-svr4.c | 38 +++++++++++++++++++++++++++---
> gdbserver/linux-low.cc | 26 +++++++++++++-------
> 4 files changed, 70 insertions(+), 14 deletions(-)

Okay for everything but the doc changes. (But Eli approved those, so it's
all okay.)

Kevin