aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-tasks.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-01 06:06:49 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-01 06:06:49 +0000
commit70575d34a7b50192b3cb94c384fa502e641e5607 (patch)
tree525b9459c60fe403cde9325846c339e1b2f608d5 /gdb/ada-tasks.c
parent594ffe977d13dcff7b624263897cf10a7894dae0 (diff)
downloadgdb-70575d34a7b50192b3cb94c384fa502e641e5607.zip
gdb-70575d34a7b50192b3cb94c384fa502e641e5607.tar.gz
gdb-70575d34a7b50192b3cb94c384fa502e641e5607.tar.bz2
Fix break *FUN'address task NUM.
* ada-lex.l (task): New rule. * ada-lang.c (valid_task_id): Make sure the Ada task list has been built before using it.
Diffstat (limited to 'gdb/ada-tasks.c')
-rw-r--r--gdb/ada-tasks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 68cc696..62f4432 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -198,6 +198,7 @@ get_task_number_from_id (CORE_ADDR task_id)
int
valid_task_id (int task_num)
{
+ ada_build_task_list (0);
return (task_num > 0
&& task_num <= VEC_length (ada_task_info_s, task_list));
}