diff options
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-catch.c | 56 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-disas.c | 16 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-env.c | 36 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-stack.c | 8 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 8 | ||||
-rw-r--r-- | gdb/mi/mi-cmds.c | 16 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 30 | ||||
-rw-r--r-- | gdb/mi/mi-parse.c | 6 |
8 files changed, 88 insertions, 88 deletions
diff --git a/gdb/mi/mi-cmd-catch.c b/gdb/mi/mi-cmd-catch.c index 2c05c73..28eb960 100644 --- a/gdb/mi/mi-cmd-catch.c +++ b/gdb/mi/mi-cmd-catch.c @@ -57,10 +57,10 @@ mi_cmd_catch_assert (const char *cmd, char *argv[], int argc) &oind, &oarg); if (opt < 0) - break; + break; switch ((enum opt) opt) - { + { case OPT_CONDITION: condition.assign (oarg); break; @@ -70,7 +70,7 @@ mi_cmd_catch_assert (const char *cmd, char *argv[], int argc) case OPT_TEMP: temp = 1; break; - } + } } /* This command does not accept any argument. Make sure the user @@ -119,10 +119,10 @@ mi_cmd_catch_exception (const char *cmd, char *argv[], int argc) &oind, &oarg); if (opt < 0) - break; + break; switch ((enum opt) opt) - { + { case OPT_CONDITION: condition.assign (oarg); break; @@ -138,7 +138,7 @@ mi_cmd_catch_exception (const char *cmd, char *argv[], int argc) case OPT_UNHANDLED: ex_kind = ada_catch_exception_unhandled; break; - } + } } /* This command does not accept any argument. Make sure the user @@ -190,10 +190,10 @@ mi_cmd_catch_handlers (const char *cmd, char *argv[], int argc) &oind, &oarg); if (opt < 0) - break; + break; switch ((enum opt) opt) - { + { case OPT_CONDITION: condition.assign (oarg); break; @@ -206,7 +206,7 @@ mi_cmd_catch_handlers (const char *cmd, char *argv[], int argc) case OPT_TEMP: temp = 1; break; - } + } } /* This command does not accept any argument. Make sure the user @@ -246,20 +246,20 @@ mi_catch_load_unload (int load, char *argv[], int argc) for (;;) { int opt = mi_getopt (actual_cmd, argc, argv, opts, - &oind, &oarg); + &oind, &oarg); if (opt < 0) - break; + break; switch ((enum opt) opt) - { - case OPT_TEMP: - temp = 1; - break; - case OPT_DISABLED: - enabled = 0; - break; - } + { + case OPT_TEMP: + temp = 1; + break; + case OPT_DISABLED: + enabled = 0; + break; + } } if (oind >= argc) @@ -315,20 +315,20 @@ mi_cmd_catch_exception_event (enum exception_event_kind kind, for (;;) { int opt = mi_getopt (cmd, argc, argv, opts, - &oind, &oarg); + &oind, &oarg); if (opt < 0) - break; + break; switch ((enum opt) opt) - { - case OPT_TEMP: - temp = true; - break; - case OPT_REGEX: + { + case OPT_TEMP: + temp = true; + break; + case OPT_REGEX: regex = oarg; - break; - } + break; + } } scoped_restore restore_breakpoint_reporting = setup_breakpoint_reporting (); diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c index e5b9697..aa61db5 100644 --- a/gdb/mi/mi-cmd-disas.c +++ b/gdb/mi/mi-cmd-disas.c @@ -44,11 +44,11 @@ always required: MODE: 0 -- disassembly. - 1 -- disassembly and source (with deprecated source-centric view). - 2 -- disassembly and opcodes. - 3 -- disassembly, source-centric and opcodes. - 4 -- disassembly, and source (with pc-centric view). - 5 -- disassembly, source (pc-centric) and opcodes. */ + 1 -- disassembly and source (with deprecated source-centric view). + 2 -- disassembly and opcodes. + 3 -- disassembly, source-centric and opcodes. + 4 -- disassembly, and source (with pc-centric view). + 5 -- disassembly, source (pc-centric) and opcodes. */ void mi_cmd_disassemble (const char *command, char **argv, int argc) @@ -138,7 +138,7 @@ mi_cmd_disassemble (const char *command, char **argv, int argc) required) OR start_addr + end_addr OR addr. */ if (!( - ( line_seen && file_seen && !start_seen && !end_seen + ( line_seen && file_seen && !start_seen && !end_seen && !addr_seen) || (!line_seen && !file_seen && !num_seen && start_seen && end_seen @@ -197,8 +197,8 @@ mi_cmd_disassemble (const char *command, char **argv, int argc) else if (addr_seen) { if (find_pc_partial_function (addr, NULL, &low, &high) == 0) - error (_("-data-disassemble: " - "No function contains specified address")); + error (_("-data-disassemble: " + "No function contains specified address")); } gdb_disassembly (gdbarch, uiout, diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c index 52ba006..9621e21 100644 --- a/gdb/mi/mi-cmd-env.c +++ b/gdb/mi/mi-cmd-env.c @@ -64,7 +64,7 @@ mi_cmd_env_pwd (const char *command, char **argv, int argc) if (argc > 0) error (_("-environment-pwd: No arguments allowed")); - + if (mi_version (uiout) < 2) { env_execute_cli_command ("pwd", NULL); @@ -76,7 +76,7 @@ mi_cmd_env_pwd (const char *command, char **argv, int argc) gdb::unique_xmalloc_ptr<char> cwd (getcwd (NULL, 0)); if (cwd == NULL) error (_("-environment-pwd: error finding name of working directory: %s"), - safe_strerror (errno)); + safe_strerror (errno)); uiout->field_string ("cwd", cwd.get ()); } @@ -88,7 +88,7 @@ mi_cmd_env_cd (const char *command, char **argv, int argc) { if (argc == 0 || argc > 1) error (_("-environment-cd: Usage DIRECTORY")); - + env_execute_cli_command ("cd", argv[0]); } @@ -138,16 +138,16 @@ mi_cmd_env_path (const char *command, char **argv, int argc) while (1) { int opt = mi_getopt ("-environment-path", argc, argv, opts, - &oind, &oarg); + &oind, &oarg); if (opt < 0) - break; + break; switch ((enum opt) opt) - { - case RESET_OPT: - reset = 1; - break; - } + { + case RESET_OPT: + reset = 1; + break; + } } argv += oind; argc -= oind; @@ -165,7 +165,7 @@ mi_cmd_env_path (const char *command, char **argv, int argc) /* Can be null if path is not set. */ if (!env) - env = ""; + env = ""; exec_path = xstrdup (env); } @@ -211,16 +211,16 @@ mi_cmd_env_dir (const char *command, char **argv, int argc) while (1) { int opt = mi_getopt ("-environment-directory", argc, argv, opts, - &oind, &oarg); + &oind, &oarg); if (opt < 0) - break; + break; switch ((enum opt) opt) - { - case RESET_OPT: - reset = 1; - break; - } + { + case RESET_OPT: + reset = 1; + break; + } } argv += oind; argc -= oind; diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index a8ef46d..ea7ea8d 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -130,7 +130,7 @@ mi_cmd_stack_list_frames (const char *command, char **argv, int argc) else { /* Called with no arguments, it means we want the whole - backtrace. */ + backtrace. */ frame_low = -1; frame_high = -1; } @@ -344,7 +344,7 @@ mi_cmd_stack_list_args (const char *command, char **argv, int argc) else { /* Called with no arguments, it means we want args for the whole - backtrace. */ + backtrace. */ frame_low = -1; frame_high = -1; } @@ -496,7 +496,7 @@ list_arg_or_local (const struct frame_arg *arg, enum what_to_list what, && (arg->val != NULL || arg->error != NULL))); gdb_assert (arg->entry_kind == print_entry_values_no || (arg->entry_kind == print_entry_values_only - && (arg->val || arg->error))); + && (arg->val || arg->error))); if (skip_unavailable && arg->val != NULL && (value_entirely_unavailable (arg->val) @@ -597,7 +597,7 @@ list_args_or_locals (const frame_print_options &fp_opts, { ALL_BLOCK_SYMBOLS (block, iter, sym) { - int print_me = 0; + int print_me = 0; switch (SYMBOL_CLASS (sym)) { diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index 65a2ba1..178eeec 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -706,11 +706,11 @@ varobj_update_one (struct varobj *var, enum print_values print_values, } uiout->field_string ("in_scope", "true"); break; - case VAROBJ_NOT_IN_SCOPE: - uiout->field_string ("in_scope", "false"); + case VAROBJ_NOT_IN_SCOPE: + uiout->field_string ("in_scope", "false"); break; - case VAROBJ_INVALID: - uiout->field_string ("in_scope", "invalid"); + case VAROBJ_INVALID: + uiout->field_string ("in_scope", "invalid"); break; } diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c index ec6f281..b63a6db 100644 --- a/gdb/mi/mi-cmds.c +++ b/gdb/mi/mi-cmds.c @@ -66,21 +66,21 @@ static struct mi_cmd mi_cmds[] = DEF_MI_CMD_MI_1 ("break-watch", mi_cmd_break_watch, &mi_suppress_notification.breakpoint), DEF_MI_CMD_MI_1 ("catch-assert", mi_cmd_catch_assert, - &mi_suppress_notification.breakpoint), + &mi_suppress_notification.breakpoint), DEF_MI_CMD_MI_1 ("catch-exception", mi_cmd_catch_exception, - &mi_suppress_notification.breakpoint), + &mi_suppress_notification.breakpoint), DEF_MI_CMD_MI_1 ("catch-handlers", mi_cmd_catch_handlers, - &mi_suppress_notification.breakpoint), + &mi_suppress_notification.breakpoint), DEF_MI_CMD_MI_1 ("catch-load", mi_cmd_catch_load, - &mi_suppress_notification.breakpoint), + &mi_suppress_notification.breakpoint), DEF_MI_CMD_MI_1 ("catch-unload", mi_cmd_catch_unload, - &mi_suppress_notification.breakpoint), + &mi_suppress_notification.breakpoint), DEF_MI_CMD_MI_1 ("catch-throw", mi_cmd_catch_throw, - &mi_suppress_notification.breakpoint), + &mi_suppress_notification.breakpoint), DEF_MI_CMD_MI_1 ("catch-rethrow", mi_cmd_catch_rethrow, - &mi_suppress_notification.breakpoint), + &mi_suppress_notification.breakpoint), DEF_MI_CMD_MI_1 ("catch-catch", mi_cmd_catch_catch, - &mi_suppress_notification.breakpoint), + &mi_suppress_notification.breakpoint), DEF_MI_CMD_MI ("complete", mi_cmd_complete), DEF_MI_CMD_MI ("data-disassemble", mi_cmd_disassemble), DEF_MI_CMD_MI ("data-evaluate-expression", mi_cmd_data_evaluate_expression), diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 41bafd2..63ade29 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1127,7 +1127,7 @@ output_register (struct frame_info *frame, int regnum, int format, /* Write given values into registers. The registers and values are given as pairs. The corresponding MI command is -data-write-register-values <format> - [<regnum1> <value1>...<regnumN> <valueN>] */ + [<regnum1> <value1>...<regnumN> <valueN>] */ void mi_cmd_data_write_register_values (const char *command, char **argv, int argc) { @@ -1590,7 +1590,7 @@ mi_cmd_data_write_memory_bytes (const char *command, char **argv, int argc) { int x; if (sscanf (cdata + i * 2, "%02x", &x) != 1) - error (_("Invalid argument")); + error (_("Invalid argument")); databuf[i] = (gdb_byte) x; } @@ -1598,7 +1598,7 @@ mi_cmd_data_write_memory_bytes (const char *command, char **argv, int argc) if (len_units < count_units) { /* Pattern is made of less units than count: - repeat pattern to fill memory. */ + repeat pattern to fill memory. */ data = gdb::byte_vector (count_units * unit_size); /* Number of times the pattern is entirely repeated. */ @@ -1606,16 +1606,16 @@ mi_cmd_data_write_memory_bytes (const char *command, char **argv, int argc) /* Number of remaining addressable memory units. */ remaining_units = count_units % len_units; for (i = 0; i < steps; i++) - memcpy (&data[i * len_bytes], &databuf[0], len_bytes); + memcpy (&data[i * len_bytes], &databuf[0], len_bytes); if (remaining_units > 0) - memcpy (&data[steps * len_bytes], &databuf[0], + memcpy (&data[steps * len_bytes], &databuf[0], remaining_units * unit_size); } else { /* Pattern is longer than or equal to count: - just copy count addressable memory units. */ + just copy count addressable memory units. */ data = std::move (databuf); } @@ -2705,26 +2705,26 @@ mi_cmd_complete (const char *command, char **argv, int argc) if (result.number_matches > 0) uiout->field_fmt ("completion", "%s%s", - arg_prefix.c_str (),result.match_list[0]); + arg_prefix.c_str (),result.match_list[0]); { ui_out_emit_list completions_emitter (uiout, "matches"); if (result.number_matches == 1) uiout->field_fmt (NULL, "%s%s", - arg_prefix.c_str (), result.match_list[0]); + arg_prefix.c_str (), result.match_list[0]); else { - result.sort_match_list (); - for (size_t i = 0; i < result.number_matches; i++) - { - uiout->field_fmt (NULL, "%s%s", - arg_prefix.c_str (), result.match_list[i + 1]); - } + result.sort_match_list (); + for (size_t i = 0; i < result.number_matches; i++) + { + uiout->field_fmt (NULL, "%s%s", + arg_prefix.c_str (), result.match_list[i + 1]); + } } } uiout->field_string ("max_completions_reached", - result.number_matches == max_completions ? "1" : "0"); + result.number_matches == max_completions ? "1" : "0"); } diff --git a/gdb/mi/mi-parse.c b/gdb/mi/mi-parse.c index a5d6efe..0a5e240 100644 --- a/gdb/mi/mi-parse.c +++ b/gdb/mi/mi-parse.c @@ -305,9 +305,9 @@ mi_parse (const char *cmd, char **token) /* See if --all is the last token in the input. */ if (strcmp (chp, "--all") == 0) { - parse->all = 1; - chp += strlen (chp); - } + parse->all = 1; + chp += strlen (chp); + } if (strncmp (chp, "--thread-group ", tgs) == 0) { char *endp; |