diff options
author | Ken Werner <ken.werner@de.ibm.com> | 2010-07-27 07:57:49 +0000 |
---|---|---|
committer | Ken Werner <ken.werner@de.ibm.com> | 2010-07-27 07:57:49 +0000 |
commit | ac0b195c018851569c96409a9d13f203f0592535 (patch) | |
tree | 75ebc5250c66d6b4dab516e1e49e115c15a43cb3 /gdb | |
parent | 7bd8aaad484008bda5f7a515c3029b3768b2e9ca (diff) | |
download | gdb-ac0b195c018851569c96409a9d13f203f0592535.zip gdb-ac0b195c018851569c96409a9d13f203f0592535.tar.gz gdb-ac0b195c018851569c96409a9d13f203f0592535.tar.bz2 |
* valops.c (dwarf2_read_index): Initialize the types_list and types_list_elements variables.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 718e7d5..d1fedab 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-07-27 Ken Werner <ken.werner@de.ibm.com> + + * valops.c (dwarf2_read_index): Initialize the types_list and + types_list_elements variables. + 2010-07-26 Tom Tromey <tromey@redhat.com> * dwarf2loc.c (locexpr_describe_location_piece): Also recognize diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index fb62b77..590e695 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1835,8 +1835,10 @@ dwarf2_read_index (struct objfile *objfile) char *addr; struct mapped_index *map; offset_type *metadata; - const gdb_byte *cu_list, *types_list; - offset_type version, cu_list_elements, types_list_elements; + const gdb_byte *cu_list; + const gdb_byte *types_list = NULL; + offset_type version, cu_list_elements; + offset_type types_list_elements = 0; int i; if (dwarf2_per_objfile->gdb_index.asection == NULL |