diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-03 21:40:34 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-03 22:07:39 -0500 |
commit | 77cf2ef5dc9099501529151921a73be904757466 (patch) | |
tree | afe55fc45fb53886d73ed81e984f83222ab759a7 /sim/mn10300/interp.c | |
parent | 3726f72c654ab357be5b79c78f238da7a869f9a3 (diff) | |
download | gdb-77cf2ef5dc9099501529151921a73be904757466.zip gdb-77cf2ef5dc9099501529151921a73be904757466.tar.gz gdb-77cf2ef5dc9099501529151921a73be904757466.tar.bz2 |
sim: parse_args: display getopt error ourselves
Fix a long standing todo where we let getopt write directly to stderr
when an invalid option is passed. Use the sim io funcs instead as they
go through the filtered callbacks that gdb wants.
Diffstat (limited to 'sim/mn10300/interp.c')
-rw-r--r-- | sim/mn10300/interp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sim/mn10300/interp.c b/sim/mn10300/interp.c index 8550c45..8959b40 100644 --- a/sim/mn10300/interp.c +++ b/sim/mn10300/interp.c @@ -125,9 +125,7 @@ sim_open (SIM_OPEN_KIND kind, sim_do_command (sd, "memory region 0,0x100000"); sim_do_command (sd, "memory region 0x40000000,0x200000"); - /* getopt will print the error message so we just have to exit if this fails. - FIXME: Hmmm... in the case of gdb we need getopt to call - print_filtered. */ + /* The parser will print an error message for us, so we silently return. */ if (sim_parse_args (sd, argv) != SIM_RC_OK) { /* Uninstall the modules to avoid memory leaks, |