aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-03-15 13:53:25 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-03-15 13:53:25 +0000
commit8e8901c5c22072ecab98e3f3e121df2bf0aefc01 (patch)
tree25ab58963d0a6a3199cd4190561f6417efb5a435 /gdb/gdbthread.h
parent7d1e6fb8639f8b672daaa338744003b4b2595d37 (diff)
downloadgdb-8e8901c5c22072ecab98e3f3e121df2bf0aefc01.zip
gdb-8e8901c5c22072ecab98e3f3e121df2bf0aefc01.tar.gz
gdb-8e8901c5c22072ecab98e3f3e121df2bf0aefc01.tar.bz2
Implement -thread-info.
* gdbthread.h (print_thread_info): Declare. * thread.c (print_thread_info): New, extracted from info_threads_command and adjusted to work for CLI and MI. (info_threads_command): Use print_thread_info. * Makefile.in: Update dependencies. * mi/mi-cmds.c (mi_cmds): Specify a handler for -thread-info. * mi/mi-cmds.h (mi_cmd_thread_info): Declare. * mi/mi-main.c (mi_cmd_thread_info): New. (mi_cmd_list_features): Include 'thread-info'.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r--gdb/gdbthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index dd4345a..5632af6 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -32,6 +32,8 @@ struct symtab;
/* For struct frame_id. */
#include "frame.h"
+#include "ui-out.h"
+
struct thread_info
{
struct thread_info *next;
@@ -150,4 +152,6 @@ extern struct cmd_list_element *thread_cmd_list;
`set print thread-events'. */
extern int print_thread_events;
+extern void print_thread_info (struct ui_out *uiout, int thread);
+
#endif /* GDBTHREAD_H */