Re: [RFA/Ada] Implement Ada tasking support (take 2)

Joel Brobecker
2008-10-23T00:49:45Z

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

> ada-tasks.c:57: error: initializer element is not constant
> ada-tasks.c:57: error: (near initialization for ?$B!Ftask_states[0]?$B!G)
> ...

Humpf. I didn't get any warning with my compiler. Sorry about that.

> (There should be N_() with runtime _(var) and not static _().)

Do you mean like this?

--
Joel

[-- Attachment #2: ada-tasks.diff --]
[-- Type: text/plain, Size: 1710 bytes --]

diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -54,41 +54,41 @@ enum task_states

/* A short description corresponding to each possible task state. */
static char *task_states[] = {
- _("Unactivated"),
- _("Runnable"),
- _("Terminated"),
- _("Child Activation Wait"),
- _("Accept Statement"),
- _("Waiting on entry call"),
- _("Async Select Wait"),
- _("Delay Sleep"),
- _("Child Termination Wait"),
- _("Wait Child in Term Alt"),
+ N_("Unactivated"),
+ N_("Runnable"),
+ N_("Terminated"),
+ N_("Child Activation Wait"),
+ N_("Accept Statement"),
+ N_("Waiting on entry call"),
+ N_("Async Select Wait"),
+ N_("Delay Sleep"),
+ N_("Child Termination Wait"),
+ N_("Wait Child in Term Alt"),
"",
"",
"",
"",
- _("Asynchronous Hold"),
+ N_("Asynchronous Hold"),
""
};

/* A longer description corresponding to each possible task state. */
static char *long_task_states[] = {
- _("Unactivated"),
- _("Runnable"),
- _("Terminated"),
- _("Waiting for child activation"),
- _("Blocked in accept statement"),
- _("Waiting on entry call"),
- _("Asynchronous Selective Wait"),
- _("Delay Sleep"),
- _("Waiting for children termination"),
- _("Waiting for children in terminate alternative"),
+ N_("Unactivated"),
+ N_("Runnable"),
+ N_("Terminated"),
+ N_("Waiting for child activation"),
+ N_("Blocked in accept statement"),
+ N_("Waiting on entry call"),
+ N_("Asynchronous Selective Wait"),
+ N_("Delay Sleep"),
+ N_("Waiting for children termination"),
+ N_("Waiting for children in terminate alternative"),
"",
"",
"",
"",
- _("Asynchronous Hold"),
+ N_("Asynchronous Hold"),
""
};