From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17996 invoked by alias); 5 Mar 2014 12:49:15 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 17856 invoked by uid 89); 5 Mar 2014 12:49:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Mar 2014 12:49:12 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WLBG0-0004Pf-Tq from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Wed, 05 Mar 2014 04:49:08 -0800 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 5 Mar 2014 04:49:08 -0800 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.2.247.3; Wed, 5 Mar 2014 04:48:23 -0800 From: Yao Qi To: Subject: [OBV PATCH 1/4] Add a newline in output messages Date: Wed, 05 Mar 2014 12:49:00 -0000 Message-ID: <1394023608-10761-2-git-send-email-yao@codesourcery.com> In-Reply-To: <1394023608-10761-1-git-send-email-yao@codesourcery.com> References: <1394023608-10761-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00111.txt.bz2 Hi, GDB prints two warnings in one single line, as below: (gdb) p 1.2 $1 = 1.2 (gdb) enable $1.2 History value must have integer type.Bad breakpoint number '$1' This patch adds '\n' at the end of message. gdb: 2014-03-05 Yao Qi * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of message. --- gdb/cli/cli-utils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gdb/cli/cli-utils.c b/gdb/cli/cli-utils.c index e18e357..a0ebc11 100644 --- a/gdb/cli/cli-utils.c +++ b/gdb/cli/cli-utils.c @@ -50,7 +50,7 @@ get_number_trailer (char **pp, int trailer) retval = value_as_long (val); else { - printf_filtered (_("History value must have integer type.")); + printf_filtered (_("History value must have integer type.\n")); retval = 0; } } -- 1.7.7.6