From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19141 invoked by alias); 23 Oct 2008 00:49:45 -0000 Received: (qmail 19128 invoked by uid 22791); 23 Oct 2008 00:49:44 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 23 Oct 2008 00:49:09 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7E2BE2A964C; Wed, 22 Oct 2008 20:49:07 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id N+r9GmIDZGDf; Wed, 22 Oct 2008 20:49:07 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 319402A9642; Wed, 22 Oct 2008 20:49:07 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 3DB5CE7AD0; Wed, 22 Oct 2008 17:49:05 -0700 (PDT) Date: Thu, 23 Oct 2008 00:49:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: [RFA/Ada] Implement Ada tasking support (take 2) Message-ID: <20081023004905.GJ3638@adacore.com> References: <20080924174850.GC3607@adacore.com> <20081022195840.GD3638@adacore.com> <20081022223621.GA25013@host0.dyn.jankratochvil.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="qjNfmADvan18RZcF" Content-Disposition: inline In-Reply-To: <20081022223621.GA25013@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00564.txt.bz2 --qjNfmADvan18RZcF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 312 > 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 --qjNfmADvan18RZcF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ada-tasks.diff" Content-length: 1710 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"), "" }; --qjNfmADvan18RZcF--