diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/source.c | 10 |
2 files changed, 11 insertions, 4 deletions
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 <aburgess@broadcom.com> + + * source.c (print_source_lines_base): Fix missing braces on else + clause leading to additional output. + 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> * 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; } |