diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2004-12-08 00:40:30 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2004-12-08 00:40:30 +0000 |
commit | 027e2a04f1bb48ef6839b4cdb83f11164db4c42d (patch) | |
tree | e8ddde668df755ea4511f8cad9718f1e5885b8f3 /sim/common/run.1 | |
parent | 9888440ad603c44db4908229b7ce827ca7a16eb4 (diff) | |
download | binutils-gdb-027e2a04f1bb48ef6839b4cdb83f11164db4c42d.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/run.1')
-rw-r--r-- | sim/common/run.1 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sim/common/run.1 b/sim/common/run.1 index ad11210ecba..7de3c7a3020 100644 --- a/sim/common/run.1 +++ b/sim/common/run.1 @@ -1,4 +1,4 @@ -.\" Copyright (c) 1993 Free Software Foundation +.\" Copyright (c) 1993, 2004 Free Software Foundation .\" See section COPYING for conditions for redistribution .TH run 1 "13oct1993" "GNU Tools" "GNU Tools" .de BP @@ -21,6 +21,8 @@ run\(em\&Simulator front-end .IR freq "\|]" .RB "[\|" \-m .IR memory "\|]" +.RB "[\|" \--sysroot +.IR filepath "\|]" .I program .ad b .hy 1 @@ -71,6 +73,16 @@ Set the memory size for the emulated machine to two to the power .IR memory . The default value is 19, emulating a board with 524288 bytes of memory. +.TP +.BI \--sysroot " filepath" +Prepend +.IR filepath +to all simulator system calls that pass absolute file paths. +Change working directory to +.IR filepath +at program start. Not all simulators support this option; those +that don't, will ignore it. + .PP .SH "SEE ALSO" |