From 8294052ca93e44a242bfd0a8d4fb1607da7440df Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 8 Jun 2011 16:44:20 +0000 Subject: [PATCH] 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=...'. --- sim/ppc/ChangeLog | 4 ++++ sim/ppc/psim.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 2b9017a0166..2536fa4272c 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,7 @@ +2011-06-08 Joel Brobecker + + * psim.c (psim_options): Accept and ignore `--sysroot=...'. + 2011-06-03 Joel Brobecker (obvious fix) From Stephen Kitt diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c index c311794db7a..076a50c8d2e 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[]; -- 2.30.2