Re: [PATCH v2] Fix logic in exec_file_locate_attach

Pedro Alves
2016-02-23T12:20:41Z

On 02/23/2016 12:15 PM, Gary Benson wrote:

> But, there is a separate issue, which is that if you run gdbserver on
> some executable, and GDB has a sysroot set, and that executable does
> not exist in GDB's sysroot but does exist on GDB's root filesystem,
> then GDB will open the file from its root filesystem:
>
> gdb -ex "set sysroot /xxx" -ex "target remote | gdbserver - /bin/ls"
> ...
> Reading symbols from /bin/ls...(no debugging symbols found)...done.
>

Yes, I had already agreed that gdb should not do that.

> My v2 patch stops that. So... can I commit it?

I've already approved it.

Thanks,
Pedro Alves