diff options
Diffstat (limited to 'gdb/mi/mi-main.c')
-rw-r--r-- | gdb/mi/mi-main.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index c5c7be7246a..98cbc04e35a 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"); } |