This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/Ada] Add new task states (Activating, Acceptor_Delay_Sleep)
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 12 Mar 2009 16:00:39 -0700
- Subject: [commit/Ada] Add new task states (Activating, Acceptor_Delay_Sleep)
Hello,
A while back, we added some new task states in the GNAT runtime, so
here is the associated update in ada-tasks.c. I think that the change
was made for VMS, so I'm not sure whether the compiler change made it
to the FSF tree or not. But we made sure to add the new enumerates
at the end of the list, so this is backwards compatible.
2009-03-12 Joel Brobecker <brobecker@adacore.com>
* ada-tasks.c (task_states,long_task_states): Add new states
Activating and Acceptor_Delay_Sleep. Update the description
of state Acceptor_Sleep.
Tested on amd64-linux. Checked in.
--
Joel
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index d51291b..599a17b 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -49,7 +49,9 @@ enum task_states
Timer_Server_Sleep,
AST_Server_Sleep,
Asynchronous_Hold,
- Interrupt_Server_Blocked_On_Event_Flag
+ Interrupt_Server_Blocked_On_Event_Flag,
+ Activating,
+ Acceptor_Delay_Sleep
};
/* A short description corresponding to each possible task state. */
@@ -58,7 +60,7 @@ static const char *task_states[] = {
N_("Runnable"),
N_("Terminated"),
N_("Child Activation Wait"),
- N_("Accept Statement"),
+ N_("Accept or Select Term"),
N_("Waiting on entry call"),
N_("Async Select Wait"),
N_("Delay Sleep"),
@@ -69,7 +71,9 @@ static const char *task_states[] = {
"",
"",
N_("Asynchronous Hold"),
- ""
+ "",
+ N_("Activating"),
+ N_("Selective Wait")
};
/* A longer description corresponding to each possible task state. */
@@ -78,7 +82,7 @@ static const char *long_task_states[] = {
N_("Runnable"),
N_("Terminated"),
N_("Waiting for child activation"),
- N_("Blocked in accept statement"),
+ N_("Blocked in accept or select with terminate"),
N_("Waiting on entry call"),
N_("Asynchronous Selective Wait"),
N_("Delay Sleep"),
@@ -89,7 +93,9 @@ static const char *long_task_states[] = {
"",
"",
N_("Asynchronous Hold"),
- ""
+ "",
+ N_("Activating"),
+ N_("Blocked in selective wait statement")
};
/* The index of certain important fields in the Ada Task Control Block