diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-09-18 05:00:51 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-09-18 05:00:51 +0000 |
commit | 2b65245ef4e04dd3ab045f0207aee8efbfd0a8ae (patch) | |
tree | 2d052c339d58a13b51ef917b6e6c39ef4d65367d /gdb/thread.c | |
parent | fed9891d87cdfed178e66e35779c22e44482ed31 (diff) | |
download | gdb-2b65245ef4e04dd3ab045f0207aee8efbfd0a8ae.zip gdb-2b65245ef4e04dd3ab045f0207aee8efbfd0a8ae.tar.gz gdb-2b65245ef4e04dd3ab045f0207aee8efbfd0a8ae.tar.bz2 |
Add ui_out parameter to libgdb functions.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 668fcca..f3e205f 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -257,7 +257,8 @@ in_thread_list (ptid_t ptid) /* Print a list of thread ids currently known, and the total number of threads. To be used from within catch_errors. */ static int -do_captured_list_thread_ids (void *arg) +do_captured_list_thread_ids (struct ui_out *uiout, + void *arg) { struct thread_info *tp; int num = 0; @@ -278,10 +279,10 @@ do_captured_list_thread_ids (void *arg) /* Official gdblib interface function to get a list of thread ids and the total number. */ enum gdb_rc -gdb_list_thread_ids (/* output object */) +gdb_list_thread_ids (struct ui_out *uiout) { - return catch_errors (do_captured_list_thread_ids, NULL, - NULL, RETURN_MASK_ALL); + return catch_exceptions (uiout, do_captured_list_thread_ids, NULL, + NULL, RETURN_MASK_ALL); } #endif @@ -683,11 +684,12 @@ thread_command (char *tidstr, int from_tty) return; } - gdb_thread_select (tidstr); + gdb_thread_select (uiout, tidstr); } static int -do_captured_thread_select (void *tidstr) +do_captured_thread_select (struct ui_out *uiout, + void *tidstr) { int num; struct thread_info *tp; @@ -736,10 +738,11 @@ see the IDs of currently known threads.", num); } enum gdb_rc -gdb_thread_select (char *tidstr) +gdb_thread_select (struct ui_out *uiout, + char *tidstr) { - return catch_errors (do_captured_thread_select, tidstr, - NULL, RETURN_MASK_ALL); + return catch_exceptions (uiout, do_captured_thread_select, tidstr, + NULL, RETURN_MASK_ALL); } /* Commands with a prefix of `thread'. */ |