This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: segfault: what should happen when I remove an inferior that is running?
- From: Marc Khouzam <marc dot khouzam at ericsson dot com>
- To: "'Joel Brobecker'" <brobecker at adacore dot com>
- Cc: "'Pedro Alves'" <pedro at codesourcery dot com>, "'gdb-patches at sourceware dot org'" <gdb-patches at sourceware dot org>, "'Tom Tromey'" <tromey at redhat dot com>
- Date: Thu, 6 Jan 2011 13:56:27 -0500
- Subject: RE: segfault: what should happen when I remove an inferior that is running?
- References: <F7CE05678329534C957159168FA70DEC572E0C0E1A@EUSAACMS0703.eamcs.ericsson.se> <201012221210.30198.pedro@codesourcery.com> <F7CE05678329534C957159168FA70DEC5730924C20@EUSAACMS0703.eamcs.ericsson.se> <201012221817.17271.pedro@codesourcery.com> <F7CE05678329534C957159168FA70DEC5730924C5E@EUSAACMS0703.eamcs.ericsson.se> <20101223033332.GN2596@adacore.com> <20101223043811.GT2596@adacore.com>
> -----Original Message-----
> From: Joel Brobecker [mailto:brobecker@adacore.com]
> Sent: Wednesday, December 22, 2010 11:38 PM
> To: Marc Khouzam
> Cc: 'Pedro Alves'; 'gdb-patches@sourceware.org'; 'Tom Tromey'
> Subject: Re: segfault: what should happen when I remove an
> inferior that is running?
>
> > Just a small nit that the ARI script discovered, we forgot the i18n
> > marker:
> >
> > error (_("cannot remore an active inferior"));
> >
> > (I also think that the proper spelling is `cannot' rather than
> > 'can not' - confirmed by wikipedia, even though they say that it is
> > occasionally spelled as two words)
> >
> > Would you mind making the obvious fix?
>
> Looks like Mark is away from the office, so I checked in the attached
> fix (HEAD & 7.2 branch)
Thanks Joel!
So I know for next time, when should this i18n marker be used?
Should it be used for any user-visible string output?
There are other instances of error() being called without it
from mi-main.c.
> \grep error\ \( mi-main.c | \grep -v error\ \(_ | wc -l
38