From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA/Ada] Implement Ada tasking support (take 2)
Date: Thu, 23 Oct 2008 00:49:00 -0000 [thread overview]
Message-ID: <20081023004905.GJ3638@adacore.com> (raw)
In-Reply-To: <20081022223621.GA25013@host0.dyn.jankratochvil.net>
[-- 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"),
""
};
next prev parent reply other threads:[~2008-10-23 0:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-24 17:50 Joel Brobecker
2008-09-26 23:24 ` Tom Tromey
2008-09-26 23:37 ` Pedro Alves
2008-10-07 4:24 ` Joel Brobecker
2008-10-22 19:59 ` Joel Brobecker
2008-10-22 22:37 ` Jan Kratochvil
2008-10-23 0:49 ` Joel Brobecker [this message]
2008-10-23 8:10 ` Jan Kratochvil
2008-10-23 14:48 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081023004905.GJ3638@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox