[PATCH 4/5] Use TARGET_FILENAME_PREFIX as the system root in some cases

Eli Zaretskii eliz@gnu.org
Tue Jul 28 15:40:00 GMT 2015


> From: Gary Benson <gbenson@redhat.com>
> Cc: Pedro Alves <palves@redhat.com>,        Sandra Loosemore <sandra@codesourcery.com>, Paul_Koning@Dell.com,        Jan Kratochvil <jan.kratochvil@redhat.com>,        Joel Brobecker <brobecker@adacore.com>
> Date: Tue, 28 Jul 2015 16:36:11 +0100
> 
> This commit updates solib_find_1 to use TARGET_FILENAME_PREFIX as the
> system root if auto-target-prefix is enabled and gdb_sysroot is empty
> and the target filesystem is not the local filesystem.
> 
> gdb/ChangeLog:
> 
> 	* solib.c (auto_target_prefix): New static variable.
> 	(solib_find_1): Use TARGET_FILENAME_PREFIX as sysroot
> 	in some cases.
> 	(show_auto_target_prefix): New function.
> 	(_initialize_solib): New "set/show auto-target-prefix"
> 	commands.
> 	* NEWS: Mention that GDB will use "target:" as the system
> 	root in some cases.  Mention new "set/show auto-target-prefix"
> 	commands.
> 
> gdb/doc/ChangeLog:
> 
> 	* gdb.texinfo (Commands to Specify Files): Document the
> 	"set/show auto-target-prefix" commands.

OK for the documentation parts.

Thanks.



More information about the Gdb-patches mailing list