public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Prompt user to report bugs
@ 2014-05-14 11:07 Gary Benson
  2014-05-14 11:22 ` Mark Kettenis
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Gary Benson @ 2014-05-14 11:07 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

Hi all,

This patch prints a couple of extra lines in internal_vproblem
to prompt the user to report the bug that's just happened.

Ok to commit?

Thanks,
Gary

-- 
2014-05-14  Gary Benson  <gbenson@redhat.com>

	* utils.c (internal_vproblem): Prompt the user to file a report.

diff --git a/gdb/utils.c b/gdb/utils.c
index a8a7cb3..905ce6d 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -746,6 +746,14 @@ internal_vproblem (struct internal_problem *problem,
   else
     internal_error (__FILE__, __LINE__, _("bad switch"));
 
+  fputs_unfiltered (_("\nThis is a bug, please report it."), gdb_stderr);
+  if (REPORT_BUGS_TO[0])
+    {
+      fputs_unfiltered (_("  For instructions, see:\n"), gdb_stderr);
+      fprintf_unfiltered (gdb_stderr, _("%s."), REPORT_BUGS_TO);
+    }
+  fputs_unfiltered ("\n\n", gdb_stderr);
+
   if (problem->should_dump_core == internal_problem_ask)
     {
       if (!can_dump_core (reason))

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-14 11:07 [PATCH] Prompt user to report bugs Gary Benson
@ 2014-05-14 11:22 ` Mark Kettenis
  2014-05-14 12:39 ` Yao Qi
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: Mark Kettenis @ 2014-05-14 11:22 UTC (permalink / raw)
  To: gbenson; +Cc: gdb-patches, tromey

> Date: Wed, 14 May 2014 12:07:42 +0100
> From: Gary Benson <gbenson@redhat.com>
> 
> Hi all,
> 
> This patch prints a couple of extra lines in internal_vproblem
> to prompt the user to report the bug that's just happened.
> 
> Ok to commit?

Can't hurt.

> -- 
> 2014-05-14  Gary Benson  <gbenson@redhat.com>
> 
> 	* utils.c (internal_vproblem): Prompt the user to file a report.
> 
> diff --git a/gdb/utils.c b/gdb/utils.c
> index a8a7cb3..905ce6d 100644
> --- a/gdb/utils.c
> +++ b/gdb/utils.c
> @@ -746,6 +746,14 @@ internal_vproblem (struct internal_problem *problem,
>    else
>      internal_error (__FILE__, __LINE__, _("bad switch"));
>  
> +  fputs_unfiltered (_("\nThis is a bug, please report it."), gdb_stderr);
> +  if (REPORT_BUGS_TO[0])
> +    {
> +      fputs_unfiltered (_("  For instructions, see:\n"), gdb_stderr);
> +      fprintf_unfiltered (gdb_stderr, _("%s."), REPORT_BUGS_TO);
> +    }
> +  fputs_unfiltered ("\n\n", gdb_stderr);
> +
>    if (problem->should_dump_core == internal_problem_ask)
>      {
>        if (!can_dump_core (reason))
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-14 11:07 [PATCH] Prompt user to report bugs Gary Benson
  2014-05-14 11:22 ` Mark Kettenis
@ 2014-05-14 12:39 ` Yao Qi
  2014-05-14 13:15   ` Gary Benson
  2014-05-14 20:14 ` Tom Tromey
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 13+ messages in thread
From: Yao Qi @ 2014-05-14 12:39 UTC (permalink / raw)
  To: Gary Benson, gdb-patches; +Cc: Tom Tromey

On 05/14/2014 07:07 PM, Gary Benson wrote:
> This patch prints a couple of extra lines in internal_vproblem
> to prompt the user to report the bug that's just happened.

GDB prints that when it starts.

$ ./gdb
GNU gdb (GDB) 7.7.50.20140514-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Do we want to print the same message again in internal error message?

-- 
Yao (齐尧)

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-14 12:39 ` Yao Qi
@ 2014-05-14 13:15   ` Gary Benson
  0 siblings, 0 replies; 13+ messages in thread
From: Gary Benson @ 2014-05-14 13:15 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches, Tom Tromey

Yao Qi wrote:
> On 05/14/2014 07:07 PM, Gary Benson wrote:
> > This patch prints a couple of extra lines in internal_vproblem
> > to prompt the user to report the bug that's just happened.
> 
> GDB prints that when it starts.
> 
> $ ./gdb
> GNU gdb (GDB) 7.7.50.20140514-cvs
> Copyright (C) 2014 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "i686-pc-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Do we want to print the same message again in internal error
> message?

Yes, I think so.  The internal error could occur many thousands
of lines after the startup message is printed.

Thanks,
Gary

-- 
http://gbenson.net/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-14 11:07 [PATCH] Prompt user to report bugs Gary Benson
  2014-05-14 11:22 ` Mark Kettenis
  2014-05-14 12:39 ` Yao Qi
@ 2014-05-14 20:14 ` Tom Tromey
  2014-05-14 21:05 ` Doug Evans
  2014-05-27 14:43 ` [COMMITTED PATCH] " Gary Benson
  4 siblings, 0 replies; 13+ messages in thread
From: Tom Tromey @ 2014-05-14 20:14 UTC (permalink / raw)
  To: Gary Benson; +Cc: gdb-patches

>>>>> "Gary" == Gary Benson <gbenson@redhat.com> writes:

Gary> Ok to commit?

Gary> 2014-05-14  Gary Benson  <gbenson@redhat.com>
Gary> 	* utils.c (internal_vproblem): Prompt the user to file a report.

Please give people a few days to comment on this.
It's the kind of thing which usually generates comments.

So far the feedback seems good though.  And the patch itself is ok.
So barring objections feel free to put it in next week.

thanks,
Tom

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-14 11:07 [PATCH] Prompt user to report bugs Gary Benson
                   ` (2 preceding siblings ...)
  2014-05-14 20:14 ` Tom Tromey
@ 2014-05-14 21:05 ` Doug Evans
  2014-05-14 21:11   ` Paul_Koning
  2014-05-27 14:43 ` [COMMITTED PATCH] " Gary Benson
  4 siblings, 1 reply; 13+ messages in thread
From: Doug Evans @ 2014-05-14 21:05 UTC (permalink / raw)
  To: Gary Benson; +Cc: gdb-patches, Tom Tromey

On Wed, May 14, 2014 at 4:07 AM, Gary Benson <gbenson@redhat.com> wrote:
> Hi all,
>
> This patch prints a couple of extra lines in internal_vproblem
> to prompt the user to report the bug that's just happened.
>
> Ok to commit?
>
> Thanks,
> Gary
>
> --
> 2014-05-14  Gary Benson  <gbenson@redhat.com>
>
>         * utils.c (internal_vproblem): Prompt the user to file a report.
>
> diff --git a/gdb/utils.c b/gdb/utils.c
> index a8a7cb3..905ce6d 100644
> --- a/gdb/utils.c
> +++ b/gdb/utils.c
> @@ -746,6 +746,14 @@ internal_vproblem (struct internal_problem *problem,
>    else
>      internal_error (__FILE__, __LINE__, _("bad switch"));
>
> +  fputs_unfiltered (_("\nThis is a bug, please report it."), gdb_stderr);
> +  if (REPORT_BUGS_TO[0])
> +    {
> +      fputs_unfiltered (_("  For instructions, see:\n"), gdb_stderr);
> +      fprintf_unfiltered (gdb_stderr, _("%s."), REPORT_BUGS_TO);
> +    }
> +  fputs_unfiltered ("\n\n", gdb_stderr);
> +
>    if (problem->should_dump_core == internal_problem_ask)
>      {
>        if (!can_dump_core (reason))
>

top.c doesn't wrap "%s." in _().
I don't know if it matters, it's just odd to see "%s." wrapped.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-14 21:05 ` Doug Evans
@ 2014-05-14 21:11   ` Paul_Koning
  2014-05-14 22:24     ` Doug Evans
  2014-05-15 10:07     ` Pierre Muller
  0 siblings, 2 replies; 13+ messages in thread
From: Paul_Koning @ 2014-05-14 21:11 UTC (permalink / raw)
  To: dje; +Cc: gbenson, gdb-patches, tromey


On May 14, 2014, at 5:05 PM, Doug Evans <dje@google.com> wrote:

> On Wed, May 14, 2014 at 4:07 AM, Gary Benson <gbenson@redhat.com> wrote:
>> Hi all,
>> 
>> This patch prints a couple of extra lines in internal_vproblem
>> to prompt the user to report the bug that's just happened.
>> 
>> Ok to commit?
>> 
>> Thanks,
>> Gary
>> 
>> --
>> 2014-05-14  Gary Benson  <gbenson@redhat.com>
>> 
>>        * utils.c (internal_vproblem): Prompt the user to file a report.
>> 
>> diff --git a/gdb/utils.c b/gdb/utils.c
>> index a8a7cb3..905ce6d 100644
>> --- a/gdb/utils.c
>> +++ b/gdb/utils.c
>> @@ -746,6 +746,14 @@ internal_vproblem (struct internal_problem *problem,
>>   else
>>     internal_error (__FILE__, __LINE__, _("bad switch"));
>> 
>> +  fputs_unfiltered (_("\nThis is a bug, please report it."), gdb_stderr);
>> +  if (REPORT_BUGS_TO[0])
>> +    {
>> +      fputs_unfiltered (_("  For instructions, see:\n"), gdb_stderr);
>> +      fprintf_unfiltered (gdb_stderr, _("%s."), REPORT_BUGS_TO);
>> +    }
>> +  fputs_unfiltered ("\n\n", gdb_stderr);
>> +
>>   if (problem->should_dump_core == internal_problem_ask)
>>     {
>>       if (!can_dump_core (reason))
>> 
> 
> top.c doesn't wrap "%s." in _().
> I don't know if it matters, it's just odd to see "%s." wrapped.


It also seems odd to see “%s.” inside _( ) since there’s nothing to translate there.

	paul

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-14 21:11   ` Paul_Koning
@ 2014-05-14 22:24     ` Doug Evans
  2014-05-15 11:39       ` Gary Benson
  2014-05-15 10:07     ` Pierre Muller
  1 sibling, 1 reply; 13+ messages in thread
From: Doug Evans @ 2014-05-14 22:24 UTC (permalink / raw)
  To: Paul Koning; +Cc: Gary Benson, gdb-patches, Tom Tromey

On Wed, May 14, 2014 at 2:11 PM,  <Paul_Koning@dell.com> wrote:
>
> On May 14, 2014, at 5:05 PM, Doug Evans <dje@google.com> wrote:
>
>> On Wed, May 14, 2014 at 4:07 AM, Gary Benson <gbenson@redhat.com> wrote:
>>> Hi all,
>>>
>>> This patch prints a couple of extra lines in internal_vproblem
>>> to prompt the user to report the bug that's just happened.
>>>
>>> Ok to commit?
>>>
>>> Thanks,
>>> Gary
>>>
>>> --
>>> 2014-05-14  Gary Benson  <gbenson@redhat.com>
>>>
>>>        * utils.c (internal_vproblem): Prompt the user to file a report.
>>>
>>> diff --git a/gdb/utils.c b/gdb/utils.c
>>> index a8a7cb3..905ce6d 100644
>>> --- a/gdb/utils.c
>>> +++ b/gdb/utils.c
>>> @@ -746,6 +746,14 @@ internal_vproblem (struct internal_problem *problem,
>>>   else
>>>     internal_error (__FILE__, __LINE__, _("bad switch"));
>>>
>>> +  fputs_unfiltered (_("\nThis is a bug, please report it."), gdb_stderr);
>>> +  if (REPORT_BUGS_TO[0])
>>> +    {
>>> +      fputs_unfiltered (_("  For instructions, see:\n"), gdb_stderr);
>>> +      fprintf_unfiltered (gdb_stderr, _("%s."), REPORT_BUGS_TO);
>>> +    }
>>> +  fputs_unfiltered ("\n\n", gdb_stderr);
>>> +
>>>   if (problem->should_dump_core == internal_problem_ask)
>>>     {
>>>       if (!can_dump_core (reason))
>>>
>>
>> top.c doesn't wrap "%s." in _().
>> I don't know if it matters, it's just odd to see "%s." wrapped.
>
>
> It also seems odd to see “%s.” inside _( ) since there’s nothing to translate there.

That's why it seemed odd to me too. :-)
[Though what do I know ... maybe someone might want to use something
other than "." at the end.]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [PATCH] Prompt user to report bugs
  2014-05-14 21:11   ` Paul_Koning
  2014-05-14 22:24     ` Doug Evans
@ 2014-05-15 10:07     ` Pierre Muller
  2014-05-15 11:38       ` Gary Benson
  1 sibling, 1 reply; 13+ messages in thread
From: Pierre Muller @ 2014-05-15 10:07 UTC (permalink / raw)
  To: Paul_Koning, dje; +Cc: gbenson, gdb-patches, tromey



> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Paul_Koning@Dell.com
> Envoyé : mercredi 14 mai 2014 23:11
> À : dje@google.com
> Cc : gbenson@redhat.com; gdb-patches@sourceware.org; tromey@redhat.com
> Objet : Re: [PATCH] Prompt user to report bugs
> 
> 
> On May 14, 2014, at 5:05 PM, Doug Evans <dje@google.com> wrote:
> 
> > On Wed, May 14, 2014 at 4:07 AM, Gary Benson <gbenson@redhat.com>
> wrote:
> >> Hi all,
> >>
> >> This patch prints a couple of extra lines in internal_vproblem
> >> to prompt the user to report the bug that's just happened.
> >>
> >> Ok to commit?
> >>
> >> Thanks,
> >> Gary
> >>
> >> --
> >> 2014-05-14  Gary Benson  <gbenson@redhat.com>
> >>
> >>        * utils.c (internal_vproblem): Prompt the user to file a
> report.
> >>
> >> diff --git a/gdb/utils.c b/gdb/utils.c
> >> index a8a7cb3..905ce6d 100644
> >> --- a/gdb/utils.c
> >> +++ b/gdb/utils.c
> >> @@ -746,6 +746,14 @@ internal_vproblem (struct internal_problem
> *problem,
> >>   else
> >>     internal_error (__FILE__, __LINE__, _("bad switch"));
> >>
> >> +  fputs_unfiltered (_("\nThis is a bug, please report it."),
> gdb_stderr);
> >> +  if (REPORT_BUGS_TO[0])
> >> +    {
> >> +      fputs_unfiltered (_("  For instructions, see:\n"),
> gdb_stderr);
> >> +      fprintf_unfiltered (gdb_stderr, _("%s."), REPORT_BUGS_TO);
> >> +    }
> >> +  fputs_unfiltered ("\n\n", gdb_stderr);
> >> +
> >>   if (problem->should_dump_core == internal_problem_ask)
> >>     {
> >>       if (!can_dump_core (reason))
> >>
> >
> > top.c doesn't wrap "%s." in _().
> > I don't know if it matters, it's just odd to see "%s." wrapped.
> 
> 
> It also seems odd to see “%s.” inside _( ) since there’s nothing to
> translate there.

  I suspect that the main reason is that
otherwise you would generate a new ARI warning
about missing _()...

  Of course, you are right that _() around "%s." is useless,
but this, on the other hand seems to indicate that,
while the "  For instructions, see: "
might become " Pour les instructions, voir : " in French,
the next part REPORT_BUGS_TO
will not get translated at all...

  OK, presently this is a simple URL link...
but we might choose one day to do localized versions of that bug report page
so why not simply use

+  fputs_unfiltered (_("\nThis is a bug, please report it"), gdb_stderr);
+  if (REPORT_BUGS_TO[0])
+    {
+      fputs_unfiltered (_(".  For instructions, see:\n"), gdb_stderr);
+      fprintf_unfiltered (gdb_stderr, _(REPORT_BUGS_TO));
+    }
+  fputs_unfiltered (".\n\n", gdb_stderr);

 To allow for possible localization of the URL page?

Pierre Muller

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-15 10:07     ` Pierre Muller
@ 2014-05-15 11:38       ` Gary Benson
  0 siblings, 0 replies; 13+ messages in thread
From: Gary Benson @ 2014-05-15 11:38 UTC (permalink / raw)
  To: Pierre Muller; +Cc: Paul_Koning, dje, gdb-patches, tromey

Pierre Muller wrote:
> so why not simply use
> 
> +  fputs_unfiltered (_("\nThis is a bug, please report it"), gdb_stderr);
> +  if (REPORT_BUGS_TO[0])
> +    {
> +      fputs_unfiltered (_(".  For instructions, see:\n"), gdb_stderr);
> +      fprintf_unfiltered (gdb_stderr, _(REPORT_BUGS_TO));
> +    }
> +  fputs_unfiltered (".\n\n", gdb_stderr);
> 
>  To allow for possible localization of the URL page?

Did you mean:
> +      fprintf_unfiltered (gdb_stderr, "%s.", _(REPORT_BUGS_TO));
                                         ^^^^^^

The code you posted would break if _(REPORT_BUGS_TO) had a "%" in it.

Thanks,
Gary

-- 
http://gbenson.net/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-14 22:24     ` Doug Evans
@ 2014-05-15 11:39       ` Gary Benson
  2014-05-15 17:10         ` Doug Evans
  0 siblings, 1 reply; 13+ messages in thread
From: Gary Benson @ 2014-05-15 11:39 UTC (permalink / raw)
  To: Doug Evans; +Cc: Paul Koning, gdb-patches, Tom Tromey

Doug Evans wrote:
> On Wed, May 14, 2014 at 2:11 PM,  <Paul_Koning@dell.com> wrote:
> > On May 14, 2014, at 5:05 PM, Doug Evans <dje@google.com> wrote:
> > > On Wed, May 14, 2014 at 4:07 AM, Gary Benson <gbenson@redhat.com> wrote:
> > > > 2014-05-14  Gary Benson  <gbenson@redhat.com>
> > > >
> > > >        * utils.c (internal_vproblem): Prompt the user to file a report.
> > > >
> > > > diff --git a/gdb/utils.c b/gdb/utils.c
> > > > index a8a7cb3..905ce6d 100644
> > > > --- a/gdb/utils.c
> > > > +++ b/gdb/utils.c
> > > > @@ -746,6 +746,14 @@ internal_vproblem (struct internal_problem *problem,
> > > >   else
> > > >     internal_error (__FILE__, __LINE__, _("bad switch"));
> > > >
> > > > +  fputs_unfiltered (_("\nThis is a bug, please report it."), gdb_stderr);
> > > > +  if (REPORT_BUGS_TO[0])
> > > > +    {
> > > > +      fputs_unfiltered (_("  For instructions, see:\n"), gdb_stderr);
> > > > +      fprintf_unfiltered (gdb_stderr, _("%s."), REPORT_BUGS_TO);
> > > > +    }
> > > > +  fputs_unfiltered ("\n\n", gdb_stderr);
> > > > +
> > > >   if (problem->should_dump_core == internal_problem_ask)
> > > >     {
> > > >       if (!can_dump_core (reason))
> > > >
> > >
> > > top.c doesn't wrap "%s." in _().
> > > I don't know if it matters, it's just odd to see "%s." wrapped.
> >
> > It also seems odd to see “%s.” inside _( ) since there’s nothing
> > to translate there.
> 
> That's why it seemed odd to me too. :-)
> [Though what do I know ... maybe someone might want to use something
> other than "." at the end.]

Japanese has a different sentence terminator:
http://en.wikipedia.org/wiki/Japanese_punctuation#Full_stop
Possibly other languages do to.

I'm easy either way, if people want it wrapped I'll wrap it,
if people want it bare I can do that too :)

Cheers,
Gary

-- 
http://gbenson.net/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] Prompt user to report bugs
  2014-05-15 11:39       ` Gary Benson
@ 2014-05-15 17:10         ` Doug Evans
  0 siblings, 0 replies; 13+ messages in thread
From: Doug Evans @ 2014-05-15 17:10 UTC (permalink / raw)
  To: Gary Benson; +Cc: Paul Koning, gdb-patches, Tom Tromey

On Thu, May 15, 2014 at 4:39 AM, Gary Benson <gbenson@redhat.com> wrote:
> Doug Evans wrote:
>> On Wed, May 14, 2014 at 2:11 PM,  <Paul_Koning@dell.com> wrote:
>> > On May 14, 2014, at 5:05 PM, Doug Evans <dje@google.com> wrote:
>> > > On Wed, May 14, 2014 at 4:07 AM, Gary Benson <gbenson@redhat.com> wrote:
>> > > > 2014-05-14  Gary Benson  <gbenson@redhat.com>
>> > > >
>> > > >        * utils.c (internal_vproblem): Prompt the user to file a report.
>> > > >
>> > > > diff --git a/gdb/utils.c b/gdb/utils.c
>> > > > index a8a7cb3..905ce6d 100644
>> > > > --- a/gdb/utils.c
>> > > > +++ b/gdb/utils.c
>> > > > @@ -746,6 +746,14 @@ internal_vproblem (struct internal_problem *problem,
>> > > >   else
>> > > >     internal_error (__FILE__, __LINE__, _("bad switch"));
>> > > >
>> > > > +  fputs_unfiltered (_("\nThis is a bug, please report it."), gdb_stderr);
>> > > > +  if (REPORT_BUGS_TO[0])
>> > > > +    {
>> > > > +      fputs_unfiltered (_("  For instructions, see:\n"), gdb_stderr);
>> > > > +      fprintf_unfiltered (gdb_stderr, _("%s."), REPORT_BUGS_TO);
>> > > > +    }
>> > > > +  fputs_unfiltered ("\n\n", gdb_stderr);
>> > > > +
>> > > >   if (problem->should_dump_core == internal_problem_ask)
>> > > >     {
>> > > >       if (!can_dump_core (reason))
>> > > >
>> > >
>> > > top.c doesn't wrap "%s." in _().
>> > > I don't know if it matters, it's just odd to see "%s." wrapped.
>> >
>> > It also seems odd to see “%s.” inside _( ) since there’s nothing
>> > to translate there.
>>
>> That's why it seemed odd to me too. :-)
>> [Though what do I know ... maybe someone might want to use something
>> other than "." at the end.]
>
> Japanese has a different sentence terminator:
> http://en.wikipedia.org/wiki/Japanese_punctuation#Full_stop
> Possibly other languages do to.

Heh.  I didn't know that.
Though I was thinking of Chantho when I wrote that. 1/2 :-)
http://tardis.wikia.com/wiki/Chantho

Chan <http://www.gnu.org/software/gdb/bugs/> tho ?

[The Chan would probably go before "For instructions, see", but why
ruin a good (bad?) joke. :)]

> I'm easy either way, if people want it wrapped I'll wrap it,
> if people want it bare I can do that too :)

I don't have a strong preference, other than to be consistent.
If it'd be a protocol violation to change top.c at the same time,
and if no one really cares, then to keep things simple
I'd say stick with what top.c does.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [COMMITTED PATCH] Prompt user to report bugs
  2014-05-14 11:07 [PATCH] Prompt user to report bugs Gary Benson
                   ` (3 preceding siblings ...)
  2014-05-14 21:05 ` Doug Evans
@ 2014-05-27 14:43 ` Gary Benson
  4 siblings, 0 replies; 13+ messages in thread
From: Gary Benson @ 2014-05-27 14:43 UTC (permalink / raw)
  To: gdb-patches; +Cc: Doug Evans, Mark Kettenis, Paul Koning, Tom Tromey, Yao Qi

Hi all,

I just committed this patch.

Thanks,
Gary

--
2014-05-27  Gary Benson  <gbenson@redhat.com>

	* utils.c (internal_vproblem): Prompt for a bug report.

diff --git a/gdb/utils.c b/gdb/utils.c
index a8a7cb3..86df1c7 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -746,6 +746,12 @@ internal_vproblem (struct internal_problem *problem,
   else
     internal_error (__FILE__, __LINE__, _("bad switch"));
 
+  fputs_unfiltered (_("\nThis is a bug, please report it."), gdb_stderr);
+  if (REPORT_BUGS_TO[0])
+    fprintf_unfiltered (gdb_stderr, _("  For instructions, see:\n%s."),
+			REPORT_BUGS_TO);
+  fputs_unfiltered ("\n\n", gdb_stderr);
+
   if (problem->should_dump_core == internal_problem_ask)
     {
       if (!can_dump_core (reason))

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-05-27 14:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-14 11:07 [PATCH] Prompt user to report bugs Gary Benson
2014-05-14 11:22 ` Mark Kettenis
2014-05-14 12:39 ` Yao Qi
2014-05-14 13:15   ` Gary Benson
2014-05-14 20:14 ` Tom Tromey
2014-05-14 21:05 ` Doug Evans
2014-05-14 21:11   ` Paul_Koning
2014-05-14 22:24     ` Doug Evans
2014-05-15 11:39       ` Gary Benson
2014-05-15 17:10         ` Doug Evans
2014-05-15 10:07     ` Pierre Muller
2014-05-15 11:38       ` Gary Benson
2014-05-27 14:43 ` [COMMITTED PATCH] " Gary Benson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).