diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-05-15 15:50:14 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-05-15 15:50:14 +0000 |
commit | af3c45d4b9e6454d62e28c909e9172ffeb09e3c8 (patch) | |
tree | 30bd05c83b9b26c4a809b49007479bdeb885793a | |
parent | 8829c37142949e8c2473a654f15f1200c838b477 (diff) | |
download | gdb-af3c45d4b9e6454d62e28c909e9172ffeb09e3c8.tar.gz |
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/cli/cli-cmds.c | 6 | ||||
-rw-r--r-- | gdb/source.c | 4 |
3 files changed, 11 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2bc3105bb33..fce57b44e4a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 88b495641ee..f66abdeb077 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -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 = { 0 }; + struct symtab_and_line sal_end = { 0 }; + struct symtab_and_line cursal = { 0 }; struct symbol *sym; char *arg1; int no_end = 1; diff --git a/gdb/source.c b/gdb/source.c index 927601d3df3..800491959d5 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -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 = { 0 }; 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 = { 0 }; cursal.symtab = current_source_symtab; cursal.line = current_source_line; |