diff options
author | Yao Qi <yao@codesourcery.com> | 2014-02-20 17:35:31 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-03-06 14:36:54 +0800 |
commit | 2217da06d8dbaf59c17bd363935bd926e5fdc8ab (patch) | |
tree | 765599520b7f32935535372303a4690175c5c21f /gdb/cli | |
parent | cc3da688013b5fb3dcc1fa5206bbeef4a35cc10c (diff) | |
download | gdb-2217da06d8dbaf59c17bd363935bd926e5fdc8ab.zip gdb-2217da06d8dbaf59c17bd363935bd926e5fdc8ab.tar.gz gdb-2217da06d8dbaf59c17bd363935bd926e5fdc8ab.tar.bz2 |
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 <yao@codesourcery.com>
* cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
message.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | 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; } } |