aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-06-08 16:44:20 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-06-08 16:44:20 +0000
commit8294052ca93e44a242bfd0a8d4fb1607da7440df (patch)
treea6c2aa987a7f3cdedc54f3ec1a7c1abd8dd51737 /sim
parent592458412fb2b4faf4b217ecef09d1a4ea0ab0ba (diff)
downloadgdb-8294052ca93e44a242bfd0a8d4fb1607da7440df.zip
gdb-8294052ca93e44a242bfd0a8d4fb1607da7440df.tar.gz
gdb-8294052ca93e44a242bfd0a8d4fb1607da7440df.tar.bz2
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')
-rw-r--r--sim/ppc/ChangeLog4
-rw-r--r--sim/ppc/psim.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 2b9017a..2536fa4 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-08 Joel Brobecker <brobecker@adacore.com>
+
+ * psim.c (psim_options): Accept and ignore `--sysroot=...'.
+
2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
From Stephen Kitt <steve@sk2.org>
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index c311794..076a50c 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[];