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: Gary Benson <gbenson at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org, Luis Machado <lgustavo at codesourcery dot com>
- Date: Wed, 24 Feb 2016 11:56:40 +0000
- Subject: Re: [PATCH v2] Fix logic in exec_file_locate_attach
- Authentication-results: sourceware.org; auth=none
- References: <20160219102447 dot GA29870 at blade dot nx> <1455880879-310-1-git-send-email-gbenson at redhat dot com> <56CC48BB dot 2010408 at redhat dot com>
Pedro Alves wrote:
> 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.
Pushed.
Thanks,
Gary
--
http://gbenson.net/