diff options
| author | Joel Brobecker <brobecker@gnat.com> | 2011-06-08 16:44:20 +0000 |
|---|---|---|
| committer | Joel Brobecker <brobecker@gnat.com> | 2011-06-08 16:44:20 +0000 |
| commit | 8294052ca93e44a242bfd0a8d4fb1607da7440df (patch) | |
| tree | a6c2aa987a7f3cdedc54f3ec1a7c1abd8dd51737 /sim/ppc/psim.c | |
| parent | 592458412fb2b4faf4b217ecef09d1a4ea0ab0ba (diff) | |
| download | ppe42-binutils-8294052ca93e44a242bfd0a8d4fb1607da7440df.tar.gz ppe42-binutils-8294052ca93e44a242bfd0a8d4fb1607da7440df.zip | |
ppc sim: Allow --sysroot command-line option
There was a recent change that cuased the "target sim" command
to add a --sysroot option to the argument vector passed down to
the simulator. This caused a failure in the powerpc simulator,
as it did not recognize it. This patch fixes the problem by adding
support for the --sysroot option (it ignores it).
sim/ppc/ChangeLog:
* psim.c (psim_options): Accept and ignore `--sysroot=...'.
Diffstat (limited to 'sim/ppc/psim.c')
| -rw-r--r-- | sim/ppc/psim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c index c311794db7..076a50c8d2 100644 --- a/sim/ppc/psim.c +++ b/sim/ppc/psim.c @@ -357,6 +357,10 @@ psim_options(device *root, } else if (strcmp (argv[argp], "--help") == 0) psim_usage (0, 1); + else if (strncmp (argv[argp], "--sysroot=", + sizeof ("--sysroot=")) == 0) + /* Ignore this option. */ + p = argv[argp] + strlen(argv[argp]) - 1; else if (strcmp (argv[argp], "--version") == 0) { extern const char version[]; |

