This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] 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:30:25 +0100
- Subject: Re: [PATCH] gdb: sim: handle target sysroot prefix
- Authentication-results: sourceware.org; auth=none
- References: <1434910105-7023-1-git-send-email-vapier at gentoo dot org> <20150622095026 dot GA22082 at blade dot nx> <20150623152826 dot GG17734 at vapier>
Mike Frysinger wrote:
> On 22 Jun 2015 10:50, Gary Benson wrote:
> > Please note that gdb_sysroot can be NULL.
>
> how so ? main.c:captured_main specifically handles that:
>
> /* Set the sysroot path. */
> gdb_sysroot = relocate_gdb_directory (TARGET_SYSTEM_ROOT,
> TARGET_SYSTEM_ROOT_RELOCATABLE);
>
> if (gdb_sysroot == NULL || *gdb_sysroot == '\0')
> {
> xfree (gdb_sysroot);
> gdb_sysroot = xstrdup (TARGET_SYSROOT_PREFIX);
> }
Good point. I may go and clear out all the gdb_sysroot == NULL
checks.
Cheers,
Gary
--
http://gbenson.net/