From: Andrew Burgess Date: Thu, 1 Dec 2011 10:37:06 +0000 (+0000) Subject: http://sourceware.org/ml/gdb-patches/2011-11/msg00778.html X-Git-Tag: gdb_7_4-2011-12-13-branchpoint~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc0ae648aa229713c8c2f104dc413db8019ec899;p=external%2Fbinutils.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dcaf777..8c83504 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 77df541..e456ac0 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; }