2006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
authorDaniel Jacobowitz <drow@false.org>
Mon, 15 May 2006 15:50:14 +0000 (15:50 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 15 May 2006 15:50:14 +0000 (15:50 +0000)
* source.c (get_current_source_symtab_and_line)
(set_current_source_symtab_and_line): Use { 0 }.
* cli/cli-cmds.c (list_command): Likewise.

gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/source.c

index 2bc3105..fce57b4 100644 (file)
@@ -1,3 +1,9 @@
+2006-05-15  Peter O'Gorman  <gdb-patches@mlists.thewrittenword.com>
+
+       * source.c (get_current_source_symtab_and_line)
+       (set_current_source_symtab_and_line): Use { 0 }.
+       * cli/cli-cmds.c (list_command): Likewise.
+
 2006-05-14  Nick Roberts  <nickrob@snap.net.nz>
 
        * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
index 88b4956..f66abde 100644 (file)
@@ -667,9 +667,9 @@ static void
 list_command (char *arg, int from_tty)
 {
   struct symtabs_and_lines sals, sals_end;
-  struct symtab_and_line sal = { };
-  struct symtab_and_line sal_end = { };
-  struct symtab_and_line cursal = { };
+  struct symtab_and_line sal = { };
+  struct symtab_and_line sal_end = { };
+  struct symtab_and_line cursal = { };
   struct symbol *sym;
   char *arg1;
   int no_end = 1;
index 927601d..8004919 100644 (file)
@@ -139,7 +139,7 @@ get_lines_to_list (void)
 struct symtab_and_line
 get_current_source_symtab_and_line (void)
 {
-  struct symtab_and_line cursal = { };
+  struct symtab_and_line cursal = { };
 
   cursal.symtab = current_source_symtab;
   cursal.line = current_source_line;
@@ -178,7 +178,7 @@ set_default_source_symtab_and_line (void)
 struct symtab_and_line
 set_current_source_symtab_and_line (const struct symtab_and_line *sal)
 {
-  struct symtab_and_line cursal = { };
+  struct symtab_and_line cursal = { };
   
   cursal.symtab = current_source_symtab;
   cursal.line = current_source_line;