aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-01-13 18:00:16 +0000
committerDaniel Jacobowitz <drow@false.org>2003-01-13 18:00:16 +0000
commit030292b70ecb623482264bd03ddf9ced4d9b0bbe (patch)
treef75fe864f2a5f72c5adc69fff2fc5b45e53b127a /gdb/solib.c
parentf5ebfba0cad0523f81fe510be73c90edd6e2b17b (diff)
downloadgdb-030292b70ecb623482264bd03ddf9ced4d9b0bbe.zip
gdb-030292b70ecb623482264bd03ddf9ced4d9b0bbe.tar.gz
gdb-030292b70ecb623482264bd03ddf9ced4d9b0bbe.tar.bz2
* Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
variables. (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE). * configure.in: Add --with-sysroot. * configure: Regenerated. * main.c (gdb_sysroot): New variable. (captured_main): Initialize gdb_sysroot. * defs.h (gdb_sysroot): New extern declaration. * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 639788b..9759fad 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1,7 +1,7 @@
/* Handle shared libraries for GDB, the GNU Debugger.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of GDB.
@@ -875,6 +875,10 @@ For other (relative) files, you can add values using `set solib-search-path'.",
add_show_from_set (c, &showlist);
set_cmd_completer (c, filename_completer);
+ /* Set the default value of "solib-absolute-prefix" from the sysroot, if
+ one is set. */
+ solib_absolute_prefix = xstrdup (gdb_sysroot);
+
c = add_set_cmd ("solib-search-path", class_support, var_string,
(char *) &solib_search_path,
"Set the search path for loading non-absolute shared library symbol files.\n\