From fc0ae648aa229713c8c2f104dc413db8019ec899 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Thu, 1 Dec 2011 10:37:06 +0000 Subject: [PATCH] http://sourceware.org/ml/gdb-patches/2011-11/msg00778.html * source.c (print_source_lines_base): Fix missing braces on else clause leading to additional output. --- gdb/ChangeLog | 5 +++++ gdb/source.c | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dcaf7776fbf..8c8350462dd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-01 Andrew Burgess + + * source.c (print_source_lines_base): Fix missing braces on else + clause leading to additional output. + 2011-11-30 Ulrich Weigand * s390-nat.c (SUBOFF): Remove. diff --git a/gdb/source.c b/gdb/source.c index 77df54138f6..e456ac07cc7 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1322,10 +1322,12 @@ print_source_lines_base (struct symtab *s, int line, int stopline, int noerror) print_sys_errmsg (name, errno); } else - ui_out_field_int (uiout, "line", line); - ui_out_text (uiout, "\tin "); - ui_out_field_string (uiout, "file", s->filename); - ui_out_text (uiout, "\n"); + { + ui_out_field_int (uiout, "line", line); + ui_out_text (uiout, "\tin "); + ui_out_field_string (uiout, "file", s->filename); + ui_out_text (uiout, "\n"); + } return; } -- 2.30.2