segfault: what should happen when I remove an inferior that is running?

Marc Khouzam marc.khouzam@ericsson.com
Thu Jan 6 18:57:00 GMT 2011


> -----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



More information about the Gdb-patches mailing list