Introduce all_objfiles and next_iterator
authorTom Tromey <tom@tromey.com>
Fri, 15 Jun 2018 05:12:16 +0000 (22:12 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 10 Jan 2019 01:28:14 +0000 (18:28 -0700)
commit217083254a26b9e1dc42c43f573054740988c2cf
treef1f71ece7cdd6a3e533ddc276bf9ec79c0096283
parentd30e1903399c32605d38b8d75a612c0d5d3d18b5
Introduce all_objfiles and next_iterator

This introduces an iterable object which can be used to iterate over
objfiles.  It also introduces a generic "next_iterator", which can be
used to iterate over types that have a "next" field.

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

* common/next-iterator.h: New file.
* objfiles.h (class all_objfiles): New.
(struct objfile_iterator): New.
gdb/ChangeLog
gdb/common/next-iterator.h [new file with mode: 0644]
gdb/objfiles.h