mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
Allow "set sysroot" with no argument to restore sysroot to empty
This commit creates the "set/show sysroot" commands using add_setshow_optional_filename_cmd to allow the sysroot to be restored to empty after being set. gdb/ChangeLog: * solib.c (_initialize_solib): Make "set/show sysroot" use add_setshow_optional_filename_cmd so it can be restored to empty after being set.
This commit is contained in:
parent
943c8b4393
commit
811a659a77
@ -1,3 +1,9 @@
|
|||||||
|
2015-03-12 Gary Benson <gbenson@redhat.com>
|
||||||
|
|
||||||
|
* solib.c (_initialize_solib): Make "set/show sysroot" use
|
||||||
|
add_setshow_optional_filename_cmd so it can be restored to
|
||||||
|
empty after being set.
|
||||||
|
|
||||||
2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
|
2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (SFILES): New source break-catch-syscall.c.
|
* Makefile.in (SFILES): New source break-catch-syscall.c.
|
||||||
|
10
gdb/solib.c
10
gdb/solib.c
@ -1590,16 +1590,16 @@ inferior. Otherwise, symbols must be loaded manually, using \
|
|||||||
show_auto_solib_add,
|
show_auto_solib_add,
|
||||||
&setlist, &showlist);
|
&setlist, &showlist);
|
||||||
|
|
||||||
add_setshow_filename_cmd ("sysroot", class_support,
|
add_setshow_optional_filename_cmd ("sysroot", class_support,
|
||||||
&gdb_sysroot, _("\
|
&gdb_sysroot, _("\
|
||||||
Set an alternate system root."), _("\
|
Set an alternate system root."), _("\
|
||||||
Show the current system root."), _("\
|
Show the current system root."), _("\
|
||||||
The system root is used to load absolute shared library symbol files.\n\
|
The system root is used to load absolute shared library symbol files.\n\
|
||||||
For other (relative) files, you can add directories using\n\
|
For other (relative) files, you can add directories using\n\
|
||||||
`set solib-search-path'."),
|
`set solib-search-path'."),
|
||||||
reload_shared_libraries,
|
reload_shared_libraries,
|
||||||
NULL,
|
NULL,
|
||||||
&setlist, &showlist);
|
&setlist, &showlist);
|
||||||
|
|
||||||
add_alias_cmd ("solib-absolute-prefix", "sysroot", class_support, 0,
|
add_alias_cmd ("solib-absolute-prefix", "sysroot", class_support, 0,
|
||||||
&setlist);
|
&setlist);
|
||||||
|
Loading…
Reference in New Issue
Block a user