* valops.c (dwarf2_read_index): Initialize the types_list and types_list_elements variables.

This commit is contained in:
Ken Werner 2010-07-27 07:57:49 +00:00
parent 7bd8aaad48
commit ac0b195c01
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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