diff options
author | 2008-11-17 12:13:49 +0000 | |
---|---|---|
committer | 2008-11-17 12:13:49 +0000 | |
commit | 3ee1c036ac61c61fc906fc93eb63fe625cacaa55 (patch) | |
tree | bc7ff8d51fe05ebb01a917b4a3f5a86bb6adddb5 /gdb/gdbthread.h | |
parent | *** empty log message *** (diff) | |
download | binutils-gdb-3ee1c036ac61c61fc906fc93eb63fe625cacaa55.tar.gz binutils-gdb-3ee1c036ac61c61fc906fc93eb63fe625cacaa55.tar.bz2 binutils-gdb-3ee1c036ac61c61fc906fc93eb63fe625cacaa55.zip |
Implement -list-thread-groups.
* thread.c (print_thread_info): New parameter pid, to print
threads of specific process.
* gdbthread.h (print_thread_info): New parameter pid.
* mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
* mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
* mi/mi-main.c (mi_cmd_thread_info): Adjust.
(print_one_process, mi_cmd_list_thread_groups): New.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r-- | gdb/gdbthread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 55c848df2a4..cac20f78cbb 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -295,7 +295,8 @@ 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); +extern void print_thread_info (struct ui_out *uiout, int thread, + int pid); extern struct cleanup *make_cleanup_restore_current_thread (void); |