This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PR7580 - Command to force abort when internal error
On Fri, Jan 09, 2009 at 10:10:55PM +0200, Eli Zaretskii wrote:
> > Date: Fri, 9 Jan 2009 22:29:14 +0400
> > From: Joel Brobecker <brobecker@adacore.com>
> > Cc: Pedro Alves <pedro@codesourcery.com>, gdb-patches@sourceware.org
> >
> > > > +const char internal_problem_ask[] = "ask";
> > > > +const char internal_problem_yes[] = "yes";
> > > > +const char internal_problem_no[] = "no";
> > >
> > > Don't we want these strings to be translatable? The questions we ask
> > > about what to do are.
> >
> > I would say no. These are arguments used in a command
>
> Then why use a string for that purpose? Someone, some day might be
> tempted to use that string in some prompt or message, at which point
> we lose.
That's how all enum commands in GDB are implemented at present;
see e.g. always_inserted_enums.
--
Daniel Jacobowitz
CodeSourcery