aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2011-12-01 10:37:06 +0000
committerAndrew Burgess <aburgess@broadcom.com>2011-12-01 10:37:06 +0000
commitfc0ae648aa229713c8c2f104dc413db8019ec899 (patch)
tree1fe928346cb413d7339297b2a11d96dc013491f2 /gdb/source.c
parent28f68c73a40a1f0a4cdc290cba9168d51999029c (diff)
downloadgdb-fc0ae648aa229713c8c2f104dc413db8019ec899.zip
gdb-fc0ae648aa229713c8c2f104dc413db8019ec899.tar.gz
gdb-fc0ae648aa229713c8c2f104dc413db8019ec899.tar.bz2
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.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c10
1 files changed, 6 insertions, 4 deletions
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;
}