* dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
authorDoug Evans <dje@google.com>
Wed, 19 Jun 2013 04:38:51 +0000 (04:38 +0000)
committerDoug Evans <dje@google.com>
Wed, 19 Jun 2013 04:38:51 +0000 (04:38 +0000)
commit3190f0c611ee86ceed79743d228cfb0edc084ed0
tree057c8ae2357d8a58f97de6444d95329b5552ea76
parent937c708cce5bb301876f73733c3478cd17ac4d1a
* dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
before using it.
(dw2_expand_symtabs_matching): Fix symbol kind validity check.
Move test of cu_index closer to use.  Print complaint if cu_index
is bad.
gdb/ChangeLog
gdb/dwarf2read.c