aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-11-17 12:13:49 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-11-17 12:13:49 +0000
commit3ee1c036ac61c61fc906fc93eb63fe625cacaa55 (patch)
treebc7ff8d51fe05ebb01a917b4a3f5a86bb6adddb5 /gdb/gdbthread.h
parent1604c175b2d182fae01fe4b3ef01df5cc4598c0b (diff)
downloadgdb-3ee1c036ac61c61fc906fc93eb63fe625cacaa55.zip
gdb-3ee1c036ac61c61fc906fc93eb63fe625cacaa55.tar.gz
gdb-3ee1c036ac61c61fc906fc93eb63fe625cacaa55.tar.bz2
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 55c848d..cac20f7 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);