This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] gdb: sim: handle target sysroot prefix
- From: Gary Benson <gbenson at redhat dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 24 Jun 2015 11:31:14 +0100
- Subject: Re: [PATCH v2] gdb: sim: handle target sysroot prefix
- Authentication-results: sourceware.org; auth=none
- References: <1434910105-7023-1-git-send-email-vapier at gentoo dot org> <1435073379-30787-1-git-send-email-vapier at gentoo dot org>
Mike Frysinger wrote:
> The default gdb sysroot now sets itself to "target:". This works
> for most remote targets, but when using the simulator, this causes
> problems as the sim will attempt to search for that path.
>
> Update the remote-sim logic to skip this leading prefix when it is
> found so that the sysroot isn't passed in as an invalid value.
>
> 2015-06-21 Mike Frysinger <vapier@gentoo.org>
>
> * remote-sim.c: Include gdb_bfd.h.
> (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
> Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
Looks good to me :)
Cheers,
Gary
--
http://gbenson.net/