From 030292b70ecb623482264bd03ddf9ced4d9b0bbe Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 13 Jan 2003 18:00:16 +0000 Subject: * 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. --- gdb/solib.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb/solib.c') 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\ -- cgit v1.1