diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-06-08 16:44:28 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-06-08 16:44:28 +0000 |
commit | 11eef9ed35b52f3e2647551120d8a0d16a5fbf15 (patch) | |
tree | e8445be4f8e57316233b832435ed7f657a282773 /sim/ppc/ChangeLog | |
parent | 8294052ca93e44a242bfd0a8d4fb1607da7440df (diff) | |
download | gdb-11eef9ed35b52f3e2647551120d8a0d16a5fbf15.zip gdb-11eef9ed35b52f3e2647551120d8a0d16a5fbf15.tar.gz gdb-11eef9ed35b52f3e2647551120d8a0d16a5fbf15.tar.bz2 |
ppc sim: Improve invalid option error message
This patch improves the error message when an invalid option is
detected, by also printing the option that actually caused the error.
For instance, from GDB:
(gdb) target sim --hello
Invalid option: --hello
Usage:
[...]
We also added the usage after an invalid long-name option (Eg: --hello)
to be in line with what's being done for all other invalid options
being detected.
sim/ppc/ChangeLog:
* 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.
Diffstat (limited to 'sim/ppc/ChangeLog')
-rw-r--r-- | sim/ppc/ChangeLog | 8 |
1 files changed, 7 insertions, 1 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=...'. |