Re: [RFC] "gdbserver ... BASENAME_EXE" no longer works

Joel Brobecker
2018-02-21T07:37:59Z

Hi Sergio,

Thanks for your preliminary answer and the pointers to your own
set of patches. I considered doing it for gdbserver only, but
thought it was less code doing it there than in in gdbserver
directly (you have to handle the case both when the executable
is passed via the command-line and the case when it's passed
via the remote protocol).

But I'm happy with your approach, as it avoids some unnecessary
work in the case of GDB (the overhead is a call to lbasename,
which is guaranteed to always return a different string than
the origin exec_file).

I'll send my comments for your patches...

--
Joel