OSDN Git Service

Kill the return value for all MI command functions.
authorVladimir Prus <vladimir@codesourcery.com>
Wed, 25 Jun 2008 15:15:42 +0000 (15:15 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Wed, 25 Jun 2008 15:15:42 +0000 (15:15 +0000)
commitedf1ebb4429784dfd8986fa06231a9c2c655e256
treef918afc0f66b5b4f58a4a6f84387acd69175ec7b
parent0b2dbbec52a7efe79a34bc748874c7d79c2f242a
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.
12 files changed:
gdb/ChangeLog
gdb/mi/mi-cmd-break.c
gdb/mi/mi-cmd-disas.c
gdb/mi/mi-cmd-env.c
gdb/mi/mi-cmd-file.c
gdb/mi/mi-cmd-stack.c
gdb/mi/mi-cmd-target.c
gdb/mi/mi-cmd-var.c
gdb/mi/mi-cmds.h
gdb/mi/mi-interp.c
gdb/mi/mi-main.c
gdb/mi/mi-symbol-cmds.c