summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-06-17 19:58:39 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-06-17 19:58:39 +0000
commit25cbe8a2fc7c6f7af0d595462094ef05798b6068 (patch)
tree7931fa066db0776cdc5fa1089f0c7c6b1b01f529 /sim
parent9669339edc0472242a7513f0cb44f17604508579 (diff)
downloadgdb-25cbe8a2fc7c6f7af0d595462094ef05798b6068.tar.gz
2002-06-17 Elena Zannoni <ezannoni@redhat.com>
* psim.c (psim_options): Don't choke when gdb invokes us with the --architecture option, just ignore it.
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/ChangeLog5
-rw-r--r--sim/ppc/psim.c13
2 files changed, 18 insertions, 0 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 3138c94dbde..6ced05bc37f 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-17 Elena Zannoni <ezannoni@redhat.com>
+
+ * psim.c (psim_options): Don't choke when gdb invokes us with
+ the --architecture option, just ignore it.
+
2002-06-16 Andrew Cagney <ac131313@redhat.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index 20d843b80bf..76bb4523342 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -341,6 +341,19 @@ psim_options(device *root,
else
tree_parse(root, "/openprom/trace/%s 1", param);
break;
+ case '-':
+ /* it's a long option of the form --optionname=optionvalue.
+ Such options can be passed through if we are invoked by
+ gdb. */
+ if (strstr(argv[argp], "architecture") != NULL) {
+ /* we must consume the argument here, so that we get out
+ of the loop. */
+ p = argv[argp] + strlen(argv[argp]) - 1;
+ printf_filtered("Warning - architecture parameter ignored\n");
+ }
+ else
+ error("Unrecognized option");
+ break;
}
p += 1;
}