summaryrefslogtreecommitdiff
path: root/sim/common/sim-config.h
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2004-12-08 00:40:30 +0000
committerHans-Peter Nilsson <hp@axis.com>2004-12-08 00:40:30 +0000
commit2ed08ae296aefe2e1815145212cf55cf79ee7a61 (patch)
tree2cb7178b870ce3f0edbd3380159e9784ef4c7a0b /sim/common/sim-config.h
parent794eadb4bf3808ba0849e88f68877cf5b5334436 (diff)
downloadgdb-2ed08ae296aefe2e1815145212cf55cf79ee7a61.tar.gz
* run.1: Document --sysroot=filepath.
* sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT. (standard_options): Support --sysroot=<path>. (standard_option_handler): Handle OPTION_SYSROOT. * syscall.c (simulator_sysroot): Define, initialized empty. (get_path): Prepend simulator_sysroot to absolute file path. [HAVE_STRING_H]: Include string.h. [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h. * nrun.c [HAVE_UNISTD_H]: Include unistd.h. (main): If simulator_sysroot is not empty, chdir there. * sim-config.h (simulator_sysroot): Declare.
Diffstat (limited to 'sim/common/sim-config.h')
-rw-r--r--sim/common/sim-config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/common/sim-config.h b/sim/common/sim-config.h
index f874b886de8..9d4d2545ae7 100644
--- a/sim/common/sim-config.h
+++ b/sim/common/sim-config.h
@@ -1,6 +1,6 @@
/* The common simulator framework for GDB, the GNU Debugger.
- Copyright 2002 Free Software Foundation, Inc.
+ Copyright 2002, 2004 Free Software Foundation, Inc.
Contributed by Andrew Cagney and Red Hat.
@@ -371,6 +371,9 @@ enum sim_environment {
? WITH_ENVIRONMENT \
: USER_ENVIRONMENT)
+/* To be prepended to simulator calls with absolute file paths and
+ chdir:ed at startup. */
+extern char *simulator_sysroot;
/* Callback & Modulo Memory.