This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] Fix logic in exec_file_locate_attach
- From: Pedro Alves <palves at redhat dot com>
- To: Gary Benson <gbenson at redhat dot com>
- Cc: Luis Machado <lgustavo at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Tue, 23 Feb 2016 12:20:37 +0000
- Subject: Re: [PATCH v2] Fix logic in exec_file_locate_attach
- Authentication-results: sourceware.org; auth=none
- References: <56CAF2E3 dot 7050607 at codesourcery dot com> <20160222135109 dot GA2256 at blade dot nx> <56CB8506 dot 3010602 at codesourcery dot com> <56CB9095 dot 9090908 at codesourcery dot com> <56CB9304 dot 9020408 at redhat dot com> <56CBA220 dot 3000709 at codesourcery dot com> <56CBA443 dot 6010106 at redhat dot com> <56CBA4BA dot 7050905 at codesourcery dot com> <20160223112721 dot GA22369 at blade dot nx> <56CC45F3 dot 1090104 at redhat dot com> <20160223121502 dot GA23530 at blade dot nx>
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