public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* New ARI warning Sat Jan 24 01:55:33 UTC 2015
@ 2015-01-24 13:31 GDB Administrator
  2015-01-24 19:24 ` Mark Wielaard
  0 siblings, 1 reply; 6+ messages in thread
From: GDB Administrator @ 2015-01-24 13:31 UTC (permalink / raw)
  To: gdb-patches

645a646
> gdb/stack.c:2467: gettext: _ markup: All messages should be marked up with _.
gdb/stack.c:2467:	    warning ("Function does not return normally to caller.");

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

* Re: New ARI warning Sat Jan 24 01:55:33 UTC 2015
  2015-01-24 13:31 New ARI warning Sat Jan 24 01:55:33 UTC 2015 GDB Administrator
@ 2015-01-24 19:24 ` Mark Wielaard
  2015-01-24 20:14   ` Mark Wielaard
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Wielaard @ 2015-01-24 19:24 UTC (permalink / raw)
  To: GDB Administrator; +Cc: gdb-patches

Hi,

On Sat, Jan 24, 2015 at 01:55:34AM +0000, GDB Administrator wrote:
> 645a646
> > gdb/stack.c:2467: gettext: _ markup: All messages should be marked up with _.
> gdb/stack.c:2467:	    warning ("Function does not return normally to caller.");

I think that is caused by my patch and the fix seems to simply add the _
as attached. OK to push?

How do I run these ARI checks locally? And could the buildbot do them?

Thanks,

Mark

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

* Re: New ARI warning Sat Jan 24 01:55:33 UTC 2015
  2015-01-24 19:24 ` Mark Wielaard
@ 2015-01-24 20:14   ` Mark Wielaard
  2015-01-26 13:02     ` Yao Qi
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Wielaard @ 2015-01-24 20:14 UTC (permalink / raw)
  To: GDB Administrator; +Cc: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

On Sat, Jan 24, 2015 at 03:12:50PM +0100, Mark Wielaard wrote:
> Hi,
> 
> On Sat, Jan 24, 2015 at 01:55:34AM +0000, GDB Administrator wrote:
> > 645a646
> > > gdb/stack.c:2467: gettext: _ markup: All messages should be marked up with _.
> > gdb/stack.c:2467:	    warning ("Function does not return normally to caller.");
> 
> I think that is caused by my patch and the fix seems to simply add the _
> as attached. OK to push?

Sorry, forgot to attach. Now it is.

> How do I run these ARI checks locally? And could the buildbot do them?
> 
> Thanks,
> 
> Mark

[-- Attachment #2: 0001-Fix-ARI-warning-in-stack.c-return_command.patch --]
[-- Type: text/plain, Size: 1182 bytes --]

From 0ad193d0a8b80fbf32717ee7f88288f7552b12de Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Sat, 24 Jan 2015 15:08:32 +0100
Subject: [PATCH] Fix ARI warning in stack.c (return_command).

gdb/ChangeLog

    * stack.c (return_command): Markup warning message with _.
---
 gdb/ChangeLog | 4 ++++
 gdb/stack.c   | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 10c3855..6b89515 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-01-24  Mark Wielaard  <mjw@redhat.com>
+
+	* stack.c (return_command): Markup warning message with _.
+
 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
 
 	PR gdb/17416
diff --git a/gdb/stack.c b/gdb/stack.c
index 5f2a3dc..5831999 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -2464,7 +2464,7 @@ return_command (char *retval_exp, int from_tty)
       else
 	{
 	  if (TYPE_NO_RETURN (thisfun->type))
-	    warning ("Function does not return normally to caller.");
+	    warning (_("Function does not return normally to caller."));
 	  confirmed = query (_("%sMake %s return now? "), query_prefix,
 			     SYMBOL_PRINT_NAME (thisfun));
 	}
-- 
1.8.3.1


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

* Re: New ARI warning Sat Jan 24 01:55:33 UTC 2015
  2015-01-24 20:14   ` Mark Wielaard
@ 2015-01-26 13:02     ` Yao Qi
  2015-01-26 16:19       ` Mark Wielaard
  0 siblings, 1 reply; 6+ messages in thread
From: Yao Qi @ 2015-01-26 13:02 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: gdb-patches

On 01/24/2015 10:15 PM, Mark Wielaard wrote:
> Subject: [PATCH] Fix ARI warning in stack.c (return_command).
> 
> gdb/ChangeLog
> 
>     * stack.c (return_command): Markup warning message with _.

It is OK as the change is obvious.

--
Yao

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

* Re: New ARI warning Sat Jan 24 01:55:33 UTC 2015
  2015-01-26 13:02     ` Yao Qi
@ 2015-01-26 16:19       ` Mark Wielaard
  2015-01-26 17:19         ` Yao Qi
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Wielaard @ 2015-01-26 16:19 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches

On Mon, Jan 26, 2015 at 06:51:20PM +0800, Yao Qi wrote:
> On 01/24/2015 10:15 PM, Mark Wielaard wrote:
> > Subject: [PATCH] Fix ARI warning in stack.c (return_command).
> > 
> > gdb/ChangeLog
> > 
> >     * stack.c (return_command): Markup warning message with _.
> 
> It is OK as the change is obvious.

Thanks, pushed.

I hadn't pushed yet because I didn't know which build target to run
locally to check the ARI warning was fixed.

Cheers,

Mark

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

* Re: New ARI warning Sat Jan 24 01:55:33 UTC 2015
  2015-01-26 16:19       ` Mark Wielaard
@ 2015-01-26 17:19         ` Yao Qi
  0 siblings, 0 replies; 6+ messages in thread
From: Yao Qi @ 2015-01-26 17:19 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: gdb-patches

On 01/26/2015 07:42 PM, Mark Wielaard wrote:
> I hadn't pushed yet because I didn't know which build target to run
> locally to check the ARI warning was fixed.

I don't know how to run ARI through make either, but we can run ARI
script in local machine like this:

$ bash ./contrib/ari/gdb_ari.sh -Wall -Werror stack.c

-- 
Yao

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

end of thread, other threads:[~2015-01-26 13:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-24 13:31 New ARI warning Sat Jan 24 01:55:33 UTC 2015 GDB Administrator
2015-01-24 19:24 ` Mark Wielaard
2015-01-24 20:14   ` Mark Wielaard
2015-01-26 13:02     ` Yao Qi
2015-01-26 16:19       ` Mark Wielaard
2015-01-26 17:19         ` Yao Qi

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