* dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
is empty.
This commit is contained in:
parent
2b88fef870
commit
0fefef5932
|
@ -1,3 +1,8 @@
|
||||||
|
2012-04-27 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
|
||||||
|
is empty.
|
||||||
|
|
||||||
2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
|
2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||||
Tom Tromey <tromey@redhat.com>
|
Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
|
|
@ -2192,6 +2192,10 @@ dwarf2_read_index (struct objfile *objfile)
|
||||||
|
|
||||||
map->constant_pool = addr + MAYBE_SWAP (metadata[i]);
|
map->constant_pool = addr + MAYBE_SWAP (metadata[i]);
|
||||||
|
|
||||||
|
/* Don't use the index if it's empty. */
|
||||||
|
if (map->symbol_table_slots == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (!create_cus_from_index (objfile, cu_list, cu_list_elements))
|
if (!create_cus_from_index (objfile, cu_list, cu_list_elements))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue