aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
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/breakpoint.c
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/breakpoint.c')
-rw-r--r--gdb/breakpoint.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index fc8e389..4ca386c 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3757,8 +3757,11 @@ gdb_breakpoint_query (struct ui_out *uiout, int bnum, char **error_message)
args.bnum = bnum;
/* For the moment we don't trust print_one_breakpoint() to not throw
an error. */
- return catch_exceptions_with_msg (uiout, do_captured_breakpoint_query, &args,
- error_message, RETURN_MASK_ALL);
+ if (catch_exceptions_with_msg (uiout, do_captured_breakpoint_query, &args,
+ error_message, RETURN_MASK_ALL) < 0)
+ return GDB_RC_FAIL;
+ else
+ return GDB_RC_OK;
}
/* Return non-zero if B is user settable (breakpoints, watchpoints,
@@ -5600,8 +5603,11 @@ gdb_breakpoint (char *address, char *condition,
args.tempflag = tempflag;
args.thread = thread;
args.ignore_count = ignore_count;
- return catch_exceptions_with_msg (uiout, do_captured_breakpoint, &args,
- error_message, RETURN_MASK_ALL);
+ if (catch_exceptions_with_msg (uiout, do_captured_breakpoint, &args,
+ error_message, RETURN_MASK_ALL) < 0)
+ return GDB_RC_FAIL;
+ else
+ return GDB_RC_OK;
}