Implement -thread-info.
authorVladimir Prus <vladimir@codesourcery.com>
Sat, 15 Mar 2008 13:53:25 +0000 (13:53 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Sat, 15 Mar 2008 13:53:25 +0000 (13:53 +0000)
commit8e8901c5c22072ecab98e3f3e121df2bf0aefc01
tree25ab58963d0a6a3199cd4190561f6417efb5a435
parent7d1e6fb8639f8b672daaa338744003b4b2595d37
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'.
gdb/ChangeLog
gdb/Makefile.in
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/gdbthread.h
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-main.c
gdb/thread.c