http://sourceware.org/ml/gdb-patches/2011-11/msg00778.html
authorAndrew Burgess <aburgess@broadcom.com>
Thu, 1 Dec 2011 10:37:06 +0000 (10:37 +0000)
committerAndrew Burgess <aburgess@broadcom.com>
Thu, 1 Dec 2011 10:37:06 +0000 (10:37 +0000)
* source.c (print_source_lines_base): Fix missing braces on else clause
leading to additional output.

gdb/ChangeLog
gdb/source.c

index dcaf7776fbf9b49a67b4bf7a82876163bc9d64f6..8c8350462ddc12e5065b235fdbb66a71339653c0 100644 (file)
@@ -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.
index 77df54138f6331ccfcb0851f0cc84b03475cd89f..e456ac07cc752570e87710395f1c107fdf8f536d 100644 (file)
@@ -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;
     }
This page took 0.029676 seconds and 4 git commands to generate.