Re: [PATCH v5 04/15] gdbserver: move main_lm handling into caller

Kevin Buettner via Gdb-patches
2022-06-19T04:23:18Z

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

> When listing SVR4 shared libraries, special care has to be taken about the
> first library in the default namespace as that refers to the main
> executable. The load map address of this main executable is provided in
> an attribute of the library-list-svr4 element.
>
> Move that code from where we enumerate libraries inside a single namespace
> to where we generate the rest of the library-list-svr4 element. This
> allows us to complete the library-list-svr4 element inside one function.
>
> There should be no functional change.
> ---
> gdbserver/linux-low.cc | 96 +++++++++++++++++++++---------------------
> 1 file changed, 48 insertions(+), 48 deletions(-)

LGTM.

Kevin