diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-15 13:53:25 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-15 13:53:25 +0000 |
commit | 73cc0963f8281351a50394710027e4cf5f475f5b (patch) | |
tree | d7cff9a5043406eb771e1b93f29dea381bc040e5 /gdb/gdbthread.h | |
parent | c3e3d5994cf7c416257245a0e312f6f69a36f7a6 (diff) | |
download | gdb-73cc0963f8281351a50394710027e4cf5f475f5b.tar.gz |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index dd4345aa283..5632af68162 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 */ |