OSDN Git Service

[Ada] New GDB/MI command: -ada-tasks-info
authorbrobecke <brobecke>
Mon, 3 Oct 2011 21:38:30 +0000 (21:38 +0000)
committerbrobecke <brobecke>
Mon, 3 Oct 2011 21:38:30 +0000 (21:38 +0000)
commit5b9ecd3450b63021c17a12e157459613a7627265
treebd154a40b1d99d6c23c6e167ae049a8f634f506a
parent990c73c17bd822d9fb7e5df5ad3fd57709c979a5
[Ada] New GDB/MI command: -ada-tasks-info

This patch introduces a new GDB/MI command: -ada-tasks-info,
which is meant to be the MI equivalent of the CLI `info tasks'
command.

This new command returns an array, with each row corresponding
to one task.  For now, the columns of the array corresponds to
the columns displayed in the CLI output.

gdb/ChangeLog:

        * ada-lang.h (struct inferior): Declare.
        (print_ada_task_info): Add declaration.
        * ada-tasks.c (print_ada_task_info): Make non-static.
        * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
        * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
        * mi/mi-main.c: #include "ada-lang.h".
        (mi_cmd_list_features): Add "ada-task-info" to the list
        of supported features.
        (mi_cmd_ada_task_info): New function.
gdb/ChangeLog
gdb/ada-lang.h
gdb/ada-tasks.c
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-main.c