diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-10-21 18:46:06 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-10-21 18:46:06 +0000 |
commit | 6cda5a20820e95cf01d510f2478cd4b992cf416b (patch) | |
tree | 1f86f3e9188b87abc598192682cc9c4d394c1e9f /gdb/testsuite/ChangeLog | |
parent | 5ed9db04f86f3eb360956052f6beea3aefd585aa (diff) | |
download | gdb-6cda5a20820e95cf01d510f2478cd4b992cf416b.zip gdb-6cda5a20820e95cf01d510f2478cd4b992cf416b.tar.gz gdb-6cda5a20820e95cf01d510f2478cd4b992cf416b.tar.bz2 |
[Ada] Fix number of lines in -ada-task-info output
When using the new -ada-task-info command with an argument,
the output would say that there are N entries in the returned
table, (where N is the total number of tasks present in the inferior).
But, in fact, the table would only contain at most 1 entry.
This patch fixes this by properly computing the number of
tasks being displayed before giving it to the uiout.
gdb/ChangeLog:
* ada-tasks.c (print_ada_task_info): Fix computation of
number of tasks displayed in command output.
gdb/testsuite/ChangeLog:
* gdb.ada/mi_task_info/task_switch.adb: New file.
* gdb.ada/mi_task_info.exp: New file.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f027791..3b71f14 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-10-21 Joel Brobecker <brobecker@adacore.com> + + * gdb.ada/mi_task_info/task_switch.adb: New file. + * gdb.ada/mi_task_info.exp: New file. + 2011-10-21 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.cp/expand-psymtabs-cxx.exp: New file. |