aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-break.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-06-25 15:15:42 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-06-25 15:15:42 +0000
commitce8f13f88e2d8fc915e0af5039080ec0b293ee11 (patch)
treed4ac1035c7bd3666217ac13efa282175d78406e9 /gdb/mi/mi-cmd-break.c
parenta2840c355960fdc116b12bd02abba2c5b9a9a653 (diff)
downloadgdb-ce8f13f88e2d8fc915e0af5039080ec0b293ee11.zip
gdb-ce8f13f88e2d8fc915e0af5039080ec0b293ee11.tar.gz
gdb-ce8f13f88e2d8fc915e0af5039080ec0b293ee11.tar.bz2
Kill the return value for all MI command functions.
* mi/mi-cmds.h (enum mi_cmd_result): Remove. (mi_cmd_argv_ftype): Change return type to void. * mi/mi-main.c: Adjust all function that implement MI commands to return nothing. (struct captured_mi_execute_command_actions): Remove the rc field. (mi_cmd_execute): Return nothing. (mi_execute_async_cli_command): Return nothing. (mi_cmd_exec_interrupt): Don't print ^done here. (mi_cmd_target_select): Don't print ^connected here. (captured_mi_execute_command): Don't check for MI_CMD_DONE. Special-case -target-select and output ^connected, not ^done. * mi/mi-cmd-break.c: Adjust. * mi/mi-cmd-disas.c: Adjust. * mi/mi-cmd-env.c: Adjust. * mi/mi-cmd-file.c: Adjust. * mi/mi-cmd-stack.c: Adjust. * mi/mi-cmd-target.c: Adjust. * mi/mi-cmd-var.c: Adjust. * mi/mi-interp.c: Adjust. * mi/mi-symbol-cmds.c: Adjust.
Diffstat (limited to 'gdb/mi/mi-cmd-break.c')
-rw-r--r--gdb/mi/mi-cmd-break.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c
index 3a5faf3..1bfb567 100644
--- a/gdb/mi/mi-cmd-break.c
+++ b/gdb/mi/mi-cmd-break.c
@@ -60,7 +60,7 @@ enum bp_type
/* Implements the -break-insert command.
See the MI manual for the list of possible options. */
-enum mi_cmd_result
+void
mi_cmd_break_insert (char *command, char **argv, int argc)
{
char *address = NULL;
@@ -156,7 +156,6 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
error (_("mi_cmd_break_insert: Unsupported tempoary regexp breakpoint"));
else
rbreak_command_wrapper (address, FROM_TTY);
- return MI_CMD_DONE;
break;
#endif
default:
@@ -167,8 +166,6 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
deprecated_set_gdb_event_hooks (old_hooks);
if (e.reason < 0)
throw_exception (e);
-
- return MI_CMD_DONE;
}
enum wp_type
@@ -184,7 +181,7 @@ enum wp_type
-break-watch -r <expr> --> insert a read watchpoint.
-break-watch -a <expr> --> insert an access wp. */
-enum mi_cmd_result
+void
mi_cmd_break_watch (char *command, char **argv, int argc)
{
char *expr = NULL;
@@ -239,5 +236,4 @@ mi_cmd_break_watch (char *command, char **argv, int argc)
default:
error (_("mi_cmd_break_watch: Unknown watchpoint type."));
}
- return MI_CMD_DONE;
}