aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/ChangeLog8
-rw-r--r--sim/ppc/psim.c7
2 files changed, 13 insertions, 2 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 2536fa4..047126a 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,4 +1,10 @@
-2011-06-08 Joel Brobecker <brobecker@adacore.com>
+2011-06-08 joel brobecker <brobecker@adacore.com>
+
+ * psim.c (psim_options): Add option that cause the error
+ in invalid-option error messages. Print the usage when
+ detecting an invalid long-name option.
+
+2011-06-08 joel brobecker <brobecker@adacore.com>
* psim.c (psim_options): Accept and ignore `--sysroot=...'.
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index 076a50c..d814486 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -261,6 +261,7 @@ psim_options(device *root,
while (*p != '\0') {
switch (*p) {
default:
+ printf_filtered ("Invalid Option: %s\n", argv[argp]);
psim_usage(0, 0);
error ("");
break;
@@ -368,7 +369,11 @@ psim_options(device *root,
exit (0);
}
else
- error("Unrecognized option");
+ {
+ printf_filtered ("Invalid option: %s\n", argv[argp]);
+ psim_usage (0, 0);
+ error ("");
+ }
break;
}
p += 1;