diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-09-16 19:09:26 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-09-16 19:09:26 +0000 |
commit | 79779fa90bec17308d0d0c4eee27365dc012a0f9 (patch) | |
tree | 86891f62cb08f81852a4adc53ae6c166f98429e8 /gdb/ravenscar-thread.c | |
parent | e225eb91c10da9c51e56ed9869321e7e854fec30 (diff) | |
download | gdb-79779fa90bec17308d0d0c4eee27365dc012a0f9.zip gdb-79779fa90bec17308d0d0c4eee27365dc012a0f9.tar.gz gdb-79779fa90bec17308d0d0c4eee27365dc012a0f9.tar.bz2 |
[Ada] Adjust ada-tasks.c:ada_build_task_list
Originally, this function had a parameter called `warn_if_null'
which would trigger a message to be printed on stdout if the
program was found to not use Ada tasking. It used one of the printf_
functions for that, which is wrong when considering the context of
GDB/MI interpreters.
So, this patch changes this function to stop printing the message,
and leaves that part to the callers instead. It also changes the
semantics slightly to return the number of tasks found, rather than
a yes/no answer. Not strictly needed, but simple enough to do, and
potentially useful later.
gdb/ChangeLog:
* ada-lang.h (ada_build_task_list): Remove parameter
`warn_if_null'.
* ada-tasks.c (ada_build_task_list): Remove parameter
`warn_if_null'. Adjust implementation and documentation.
(valid_task_id, ada_get_environment_task)
iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
(info_tasks_command): Adjust implementation.
(task_command): Likewise.
* ravenscar-thread.c (ravenscar_find_new_threads): Fix call
to ada_build_task_list.
Diffstat (limited to 'gdb/ravenscar-thread.c')
-rw-r--r-- | gdb/ravenscar-thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index b324fe7..696e08a8 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -222,7 +222,7 @@ ravenscar_add_thread (struct ada_task_info *task) static void ravenscar_find_new_threads (struct target_ops *ops) { - ada_build_task_list (0); + ada_build_task_list (); /* Do not clear the thread list before adding the Ada task, to keep the thread that the process stratum has included into it |