diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-03-13 01:51:17 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-03-13 01:51:17 +0000 |
commit | ab6145c706bdaee3615c93409108ba74d3ba3376 (patch) | |
tree | 8c101f095cfabae0eeba464d01dbd5c6000323d0 /gdb/ada-tasks.c | |
parent | 7684a5dbf99ce138626a84f34c71e332e29b37ed (diff) | |
download | gdb-ab6145c706bdaee3615c93409108ba74d3ba3376.tar.gz |
* ada-tasks.c (ada_task_is_alive): Move up and make static.
* ada-lang.h (ada_task_is_alive): Remove declaration.
Diffstat (limited to 'gdb/ada-tasks.c')
-rw-r--r-- | gdb/ada-tasks.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c index 599a17b7fc6..d0ce5ab1bdf 100644 --- a/gdb/ada-tasks.c +++ b/gdb/ada-tasks.c @@ -202,6 +202,15 @@ valid_task_id (int task_num) && task_num <= VEC_length (ada_task_info_s, task_list)); } +/* Return non-zero iff the task STATE corresponds to a non-terminated + task state. */ + +static int +ada_task_is_alive (struct ada_task_info *task_info) +{ + return (task_info->state != Terminated); +} + /* Extract the contents of the value as a string whose length is LENGTH, and store the result in DEST. */ @@ -662,15 +671,6 @@ ada_build_task_list (int warn_if_null) return 1; } -/* Return non-zero iff the task STATE corresponds to a non-terminated - task state. */ - -int -ada_task_is_alive (struct ada_task_info *task_info) -{ - return (task_info->state != Terminated); -} - /* Print a one-line description of the task whose number is TASKNO. The formatting should fit the "info tasks" array. */ |