[pushed/ob] gdb/infrun.c: Various trivial ARI fixes.

Message ID 1439230177-2060-1-git-send-email-brobecker@adacore.com
State New, archived
Headers

Commit Message

Joel Brobecker Aug. 10, 2015, 6:09 p.m. UTC
  Hello,

I just applied this patch, after having tested on x86_64-linux.
This should fix all the new ARI warnings reported on Sat Aug  8
01:54:11 UTC 2015.

gdb/ChangeLog:

        * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
        trailing new-line at end of warning message.
        (proceed): Add i18n marker to error messages.

Thanks,
  

Comments

Pedro Alves Aug. 12, 2015, 11:35 a.m. UTC | #1
On 08/10/2015 07:09 PM, Joel Brobecker wrote:
> Hello,
> 
> I just applied this patch, after having tested on x86_64-linux.
> This should fix all the new ARI warnings reported on Sat Aug  8
> 01:54:11 UTC 2015.
> 
> gdb/ChangeLog:
> 
>         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
>         trailing new-line at end of warning message.
>         (proceed): Add i18n marker to error messages.

Thanks Joel.
  

Patch

diff --git a/gdb/infrun.c b/gdb/infrun.c
index 21aa8cf..a695f2e 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -803,7 +803,7 @@  follow_fork (void)
 		       issued is most likely not applicable to the
 		       child, so just warn, and refuse to resume.  */
 		    warning (_("Not resuming: switched threads "
-			       "before following fork child.\n"));
+			       "before following fork child."));
 		  }
 
 		/* Reset breakpoints in the child as appropriate.  */
@@ -1860,7 +1860,7 @@  displaced_step_prepare (ptid_t ptid)
 	 "auto".  */
       if (can_use_displaced_stepping == AUTO_BOOLEAN_TRUE)
 	{
-	  warning (_("disabling displaced stepping: %s\n"),
+	  warning (_("disabling displaced stepping: %s"),
 		   ex.message);
 	}
 
@@ -2356,7 +2356,7 @@  resume (enum gdb_signal sig)
 	 pending signals to deliver.  */
       if (sig != GDB_SIGNAL_0)
 	{
-	  warning (_("Couldn't deliver signal %s to %s.\n"),
+	  warning (_("Couldn't deliver signal %s to %s."),
 		   gdb_signal_to_name (sig), target_pid_to_str (tp->ptid));
 	}
 
@@ -3075,7 +3075,7 @@  proceed (CORE_ADDR addr, enum gdb_signal siggnal)
 	  switch_to_thread (tp->ptid);
 	  keep_going_pass_signal (ecs);
 	  if (!ecs->wait_some_more)
-	    error ("Command aborted.");
+	    error (_("Command aborted."));
 	}
     }
   else if (!tp->resumed && !thread_is_in_step_over_chain (tp))
@@ -3085,7 +3085,7 @@  proceed (CORE_ADDR addr, enum gdb_signal siggnal)
       switch_to_thread (tp->ptid);
       keep_going_pass_signal (ecs);
       if (!ecs->wait_some_more)
-	error ("Command aborted.");
+	error (_("Command aborted."));
     }
 
   discard_cleanups (old_chain);