diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-06-17 19:58:39 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-06-17 19:58:39 +0000 |
commit | 47243d69f7563fc4c5a16cf8cc5269c9dfd4a6bf (patch) | |
tree | d8e2c47c0b43573080dc50110cba9306b3bcab3e /sim/ppc/psim.c | |
parent | 9b02dd1b3225a931f328170f95a3733c845cea4d (diff) | |
download | gdb-47243d69f7563fc4c5a16cf8cc5269c9dfd4a6bf.zip gdb-47243d69f7563fc4c5a16cf8cc5269c9dfd4a6bf.tar.gz gdb-47243d69f7563fc4c5a16cf8cc5269c9dfd4a6bf.tar.bz2 |
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/ppc/psim.c')
-rw-r--r-- | sim/ppc/psim.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c index 20d843b..76bb452 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; } |