diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b94aa0fbf6c..6f6e6baee60 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2019-06-10 Tom de Vries + + PR gdb/24618 + * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make + sure an empty slot (defined by a 32-bit zero pair) is recognized as + invalid. + 2019-06-10 Tom de Vries PR gdb/24611 diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 9d9bc9948aa..06c319dac02 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -212,7 +212,7 @@ struct mapped_index final : public mapped_index_base bool symbol_name_slot_invalid (offset_type idx) const override { const auto &bucket = this->symbol_table[idx]; - return bucket.name == 0 && bucket.vec; + return bucket.name == 0 && bucket.vec == 0; } /* Convenience method to get at the name of the symbol at IDX in the