[Ada] Add field "thread-id" in -ada-task-info output
authorJoel Brobecker <brobecker@gnat.com>
Mon, 3 Oct 2011 21:38:39 +0000 (21:38 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 3 Oct 2011 21:38:39 +0000 (21:38 +0000)
commit6005b210399595c6b49418a13901fa2941272175
tree03615b26e96ae9c6665c8841ad87f20904182c8c
parent75082e8cbbc39096235c59a2ef8f409d0ae33d24
[Ada] Add field "thread-id" in -ada-task-info output

This patch enhances the -ada-task-info command, adding a new
field called "thread-id" in the command output.  This field
provides the ID of the task's corresponding thread (if that
information could not be determined, the field is omitted).

This field is useful in the context of GDB/MI users, because
it allows a quick translation from Ada task to thread, and
thus easy use of all the commands that take a --thread argument.

gdb/ChangeLog:

        * ada-tasks.c (print_ada_task_info): Add "thread-id" field
        in output of -ada-task-info GDB/MI command.
gdb/ChangeLog
gdb/ada-tasks.c