From patchwork Mon Aug 10 18:09:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Brobecker X-Patchwork-Id: 8124 Received: (qmail 98085 invoked by alias); 10 Aug 2015 18:09:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 98064 invoked by uid 89); 10 Aug 2015 18:09:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_50, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 10 Aug 2015 18:09:43 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 078AA2878E for ; Mon, 10 Aug 2015 14:09:41 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id w+MdRGIlsNiF for ; Mon, 10 Aug 2015 14:09:40 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id CCF9E28723 for ; Mon, 10 Aug 2015 14:09:40 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 3C24C46958; Mon, 10 Aug 2015 11:09:39 -0700 (PDT) From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [pushed/ob] gdb/infrun.c: Various trivial ARI fixes. Date: Mon, 10 Aug 2015 11:09:37 -0700 Message-Id: <1439230177-2060-1-git-send-email-brobecker@adacore.com> 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, 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);