[PATCH v2] Fix logic in exec_file_locate_attach
Pedro Alves
palves@redhat.com
Tue Feb 23 11:55:00 GMT 2016
On 02/19/2016 11:21 AM, Gary Benson wrote:
> ---
> This commit fixes an error in exec_file_locate_attach where
> the main executable could be loaded from outside the sysroot
> if a nonempty, non-"target:" sysroot was set but the discovered
> executable filename did not exist in that sysroot and did exist
> on the main filesystem.
>
> gdb/ChangeLog:
>
> * exec.c (exec_file_locate_attach): Do not attempt to
> locate main executable locally if not found in sysroot.
>
> gdb/testsuite/ChangeLog:
>
> * gdb.base/attach-pie-noexec.exp: Do not expect an error
> message on attach.
OK.
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list