aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmds.c
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/mi/mi-cmds.c
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/mi/mi-cmds.c')
-rw-r--r--gdb/mi/mi-cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c
index ca0f428..d38de35 100644
--- a/gdb/mi/mi-cmds.c
+++ b/gdb/mi/mi-cmds.c
@@ -90,6 +90,7 @@ struct mi_cmd mi_cmds[] =
{ "interpreter-exec", { NULL, 0 }, mi_cmd_interpreter_exec},
{ "list-features", { NULL, 0 }, mi_cmd_list_features},
{ "list-target-features", { NULL, 0 }, mi_cmd_list_target_features},
+ { "list-thread-groups", { NULL, 0 }, mi_cmd_list_thread_groups },
{ "overlay-auto", { NULL, 0 }, NULL },
{ "overlay-list-mapping-state", { NULL, 0 }, NULL },
{ "overlay-list-overlays", { NULL, 0 }, NULL },