aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-10-21 18:46:06 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-10-21 18:46:06 +0000
commit6cda5a20820e95cf01d510f2478cd4b992cf416b (patch)
tree1f86f3e9188b87abc598192682cc9c4d394c1e9f /bfd
parent5ed9db04f86f3eb360956052f6beea3aefd585aa (diff)
downloadfsf-binutils-gdb-6cda5a20820e95cf01d510f2478cd4b992cf416b.zip
fsf-binutils-gdb-6cda5a20820e95cf01d510f2478cd4b992cf416b.tar.gz
fsf-binutils-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 'bfd')
0 files changed, 0 insertions, 0 deletions