From 2217da06d8dbaf59c17bd363935bd926e5fdc8ab Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Thu, 20 Feb 2014 17:35:31 +0800 Subject: [PATCH] Add a newline in output messages 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 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of message. --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b5a92fb58a..8088e648c3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-03-06 Yao Qi + + * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of + message. + 2014-03-06 Yao Qi PR breakpoints/16508 diff --git a/gdb/cli/cli-utils.c b/gdb/cli/cli-utils.c index e18e357e49..a0ebc11d93 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; } }