Implement -list-thread-groups.
authorVladimir Prus <vladimir@codesourcery.com>
Mon, 17 Nov 2008 12:13:49 +0000 (12:13 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Mon, 17 Nov 2008 12:13:49 +0000 (12:13 +0000)
commit3ee1c036ac61c61fc906fc93eb63fe625cacaa55
treebc7ff8d51fe05ebb01a917b4a3f5a86bb6adddb5
parent1604c175b2d182fae01fe4b3ef01df5cc4598c0b
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.
gdb/ChangeLog
gdb/gdbthread.h
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-main.c
gdb/thread.c