aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-04 05:08:26 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-04 05:08:26 -0500
commit8d7d784e23b5b2f8c7e28ece1bdb73b58199f16f (patch)
tree63ee8b4214d5154200761718a5ca4e6e5484b5e2 /sim/common
parent9bbf6f91c6e85ca916ec2c266009167f20f5ecfd (diff)
downloadgdb-8d7d784e23b5b2f8c7e28ece1bdb73b58199f16f.zip
gdb-8d7d784e23b5b2f8c7e28ece1bdb73b58199f16f.tar.gz
gdb-8d7d784e23b5b2f8c7e28ece1bdb73b58199f16f.tar.bz2
sim: parse_args: polish getopt error message
The cris sim hit a few failures after the recent getopt logic, and the expected output showed a few ways we can improve things to better match other utils.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/sim-options.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 97a170a..e0eebb2 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
2016-01-04 Mike Frysinger <vapier@gentoo.org>
+ * sim-options.c (sim_parse_args): Tweak getopt error message.
+
+2016-01-04 Mike Frysinger <vapier@gentoo.org>
+
* acinclude.m4 (sim-bswap): Delete.
* configure: Regenerate.
* Make-common.in (SIM_BSWAP): Delete.
diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c
index f662b73..ad8b1eb 100644
--- a/sim/common/sim-options.c
+++ b/sim/common/sim-options.c
@@ -616,7 +616,7 @@ sim_parse_args (SIM_DESC sd, char **argv)
badopt = argv[optind - 1];
sim_io_eprintf (sd,
- "%s: unrecognized option: %s\n"
+ "%s: unrecognized option '%s'\n"
"Use --help for a complete list of options.\n",
STATE_MY_NAME (sd), badopt);