aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-04-10 14:53:46 +0000
committerDaniel Jacobowitz <drow@false.org>2007-04-10 14:53:46 +0000
commitb0b13bb4cc57090510c28345de1c5ab678c68b13 (patch)
tree6bdca1104c7eda139fb1d6f2c42d21eed0a81050 /gdb/mi
parent1a92f85678f2cf28128ca444e9c8458b771c3b39 (diff)
downloadgdb-b0b13bb4cc57090510c28345de1c5ab678c68b13.zip
gdb-b0b13bb4cc57090510c28345de1c5ab678c68b13.tar.gz
gdb-b0b13bb4cc57090510c28345de1c5ab678c68b13.tar.bz2
* breakpoint.c (gdb_breakpoint_query): Really return an
enum gdb_rc. (gdb_breakpoint): Likewise. * thread.c (do_captured_list_thread_ids): Likewise. (do_captured_thread_select): Likewise. * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc. (mi_cmd_thread_list_ids): Remove bogus initialization.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 449e7d0..bdbb309 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -253,11 +253,7 @@ mi_cmd_thread_select (char *command, char **argv, int argc)
else
rc = gdb_thread_select (uiout, argv[0], &mi_error_message);
- /* RC is enum gdb_rc if it is successful (>=0)
- enum return_reason if not (<0). */
- if ((int) rc < 0 && (enum return_reason) rc == RETURN_ERROR)
- return MI_CMD_ERROR;
- else if ((int) rc >= 0 && rc == GDB_RC_FAIL)
+ if (rc == GDB_RC_FAIL)
return MI_CMD_ERROR;
else
return MI_CMD_DONE;
@@ -266,7 +262,7 @@ mi_cmd_thread_select (char *command, char **argv, int argc)
enum mi_cmd_result
mi_cmd_thread_list_ids (char *command, char **argv, int argc)
{
- enum gdb_rc rc = MI_CMD_DONE;
+ enum gdb_rc rc;
if (argc != 0)
{