diff options
author | Stan Shebs <shebs@codesourcery.com> | 2012-03-06 22:48:53 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2012-03-06 22:48:53 +0000 |
commit | 2b03b41d6ac4781c8aac2baa37e9ec282dd0d2b0 (patch) | |
tree | 132fc8ce2c9fd9b998bc772902d0368cd81d8193 /gdb/mi/mi-getopt.c | |
parent | 3ce231f8e2a12502728fbebf0ddfaa690e986154 (diff) | |
download | gdb-2b03b41d6ac4781c8aac2baa37e9ec282dd0d2b0.zip gdb-2b03b41d6ac4781c8aac2baa37e9ec282dd0d2b0.tar.gz gdb-2b03b41d6ac4781c8aac2baa37e9ec282dd0d2b0.tar.bz2 |
* mi/mi-cmd-break.c: Enforce coding standards, fix comments.
* mi/mi-cmd-disas.c: Ditto.
* mi/mi-cmd-env.c: Ditto.
* mi/mi-cmd-file.c: Ditto.
* mi/mi-cmd-stack.c: Ditto.
* mi/mi-cmd-target.c: Ditto.
* mi/mi-cmd-var.c: Ditto.
* mi/mi-cmds.c: Ditto.
* mi/mi-cmds.h: Ditto.
* mi/mi-console.c: Ditto.
* mi/mi-getopt.c: Ditto.
* mi/mi-getopt.h: Ditto.
* mi/mi-interp.c: Ditto.
* mi/mi-main.c: Ditto.
* mi/mi-out.c: Ditto.
* mi/mi-parse.c: Ditto.
* mi/mi-parse.h: Ditto.
* mi/mi-symbol-cmds.c: Ditto.
* mi/mi-getopt.h: Move mi_opt struct up.
* mi/mi-main.c (captured_mi_execute_command): Remove redundant
return.
* mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
Diffstat (limited to 'gdb/mi/mi-getopt.c')
-rw-r--r-- | gdb/mi/mi-getopt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/mi/mi-getopt.c b/gdb/mi/mi-getopt.c index f836fa7..3a7c6a3 100644 --- a/gdb/mi/mi-getopt.c +++ b/gdb/mi/mi-getopt.c @@ -30,7 +30,7 @@ mi_getopt (const char *prefix, char *arg; const struct mi_opt *opt; - /* We assume that argv/argc are ok. */ + /* We assume that argv/argc are ok. */ if (*oind > argc || *oind < 0) internal_error (__FILE__, __LINE__, _("mi_getopt_long: oind out of bounds")); @@ -44,20 +44,20 @@ mi_getopt (const char *prefix, *oarg = NULL; return -1; } - /* End of option list. */ + /* End of option list. */ if (arg[0] != '-') { *oarg = NULL; return -1; } - /* Look the option up. */ + /* Look the option up. */ for (opt = opts; opt->name != NULL; opt++) { if (strcmp (opt->name, arg + 1) != 0) continue; if (opt->arg_p) { - /* A non-simple oarg option. */ + /* A non-simple oarg option. */ if (argc < *oind + 2) error (_("%s: Option %s requires an argument"), prefix, arg); *oarg = argv[(*oind) + 1]; @@ -80,9 +80,9 @@ mi_valid_noargs (const char *prefix, int argc, char **argv) int oind = 0; char *oarg; static const struct mi_opt opts[] = - { - { 0, 0, 0 } - }; + { + { 0, 0, 0 } + }; if (mi_getopt (prefix, argc, argv, opts, &oind, &oarg) == -1) return 1; |