Simplify minsym iteration
authorTom Tromey <tom@tromey.com>
Wed, 16 Jan 2019 14:09:55 +0000 (07:09 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 17 Jan 2019 22:42:26 +0000 (15:42 -0700)
commit604b1bfb46e62d561698397cb5499b487eb0db34
tree7747384711d71ee4b097e47db51457e452100e83
parentf252c6d5dc49cb27838e153e863f16ea7895859e
Simplify minsym iteration

This simplifies the minimal symbol iterator, by using
minimal_symbol_count and just doing a somewhat ordinary array-like
iteration.  array_view is nearly usable, except that it is more
convenient for this iterator to return pointers rather than
references.

gdb/ChangeLog
2019-01-16  Tom Tromey  <tom@tromey.com>

* objfiles.h (class objfile_msymbols) <iterator>: Change argument
type.  Remove no-argument constructor.
<iterator::operator++>: Simplify.
<begin>: Update.
<end>: Use minimal_symbol_count.
gdb/ChangeLog
gdb/objfiles.h