]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add a newline in output messages
authorYao Qi <yao@codesourcery.com>
Thu, 20 Feb 2014 09:35:31 +0000 (17:35 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 6 Mar 2014 06:36:54 +0000 (14:36 +0800)
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-06  Yao Qi  <yao@codesourcery.com>

* cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
message.

gdb/ChangeLog
gdb/cli/cli-utils.c

index b5a92fb58a15c09f4b78150f13c1ee5ea27ba1b5..8088e648c3b57f2b777ba6d8d7c3c0a949c0fcef 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-06  Yao Qi  <yao@codesourcery.com>
+
+       * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
+       message.
+
 2014-03-06  Yao Qi  <yao@codesourcery.com>
 
        PR breakpoints/16508
index e18e357e49b8062a2c231a23a187492c5f997812..a0ebc11d936077601d8f1c2252d08de4b560a5dc 100644 (file)
@@ -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;
            }
        }