OSDN Git Service

[Ada] Add field "thread-id" in -ada-task-info output
authorbrobecke <brobecke>
Mon, 3 Oct 2011 21:38:39 +0000 (21:38 +0000)
committerbrobecke <brobecke>
Mon, 3 Oct 2011 21:38:39 +0000 (21:38 +0000)
commit56a930d947e05afe2f70dde3b6fccfa76aaf618c
tree73ecbcfba7e4c3327552d417742d6012a2925b54
parent5b9ecd3450b63021c17a12e157459613a7627265
[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