summaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2007-04-10 14:53:46 +0000
committerDaniel Jacobowitz <dan@debian.org>2007-04-10 14:53:46 +0000
commit0c33e211dd3d4f5f63592b9f143e18b24dfd6e8d (patch)
tree5c4e3c6e24b59db1506604cf9aeeff1af4e5d9c0 /gdb/thread.c
parentdb569fc1a9f1b17d5940b1019c119c42e596bf62 (diff)
downloadgdb-0c33e211dd3d4f5f63592b9f143e18b24dfd6e8d.tar.gz
* 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/thread.c')
-rw-r--r--gdb/thread.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index dbfd2dd82dc..d2a6e6fc2bd 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -284,8 +284,10 @@ do_captured_list_thread_ids (struct ui_out *uiout, void *arg)
enum gdb_rc
gdb_list_thread_ids (struct ui_out *uiout, char **error_message)
{
- return catch_exceptions_with_msg (uiout, do_captured_list_thread_ids, NULL,
- error_message, RETURN_MASK_ALL);
+ if (catch_exceptions_with_msg (uiout, do_captured_list_thread_ids, NULL,
+ error_message, RETURN_MASK_ALL) < 0)
+ return GDB_RC_FAIL;
+ return GDB_RC_OK;
}
/* Load infrun state for the thread PID. */
@@ -705,8 +707,10 @@ do_captured_thread_select (struct ui_out *uiout, void *tidstr)
enum gdb_rc
gdb_thread_select (struct ui_out *uiout, char *tidstr, char **error_message)
{
- return catch_exceptions_with_msg (uiout, do_captured_thread_select, tidstr,
- error_message, RETURN_MASK_ALL);
+ if (catch_exceptions_with_msg (uiout, do_captured_thread_select, tidstr,
+ error_message, RETURN_MASK_ALL) < 0)
+ return GDB_RC_FAIL;
+ return GDB_RC_OK;
}
/* Commands with a prefix of `thread'. */