[PATCH] gdb: sim: handle target sysroot prefix
Gary Benson
gbenson@redhat.com
Wed Jun 24 10:30:00 GMT 2015
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/
More information about the Gdb-patches
mailing list