diff options
author | Tom Tromey <tom@tromey.com> | 2019-11-03 10:38:36 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-12-12 15:50:54 -0700 |
commit | 13bff72615e5a93a6e5f28e83a594125e66ccced (patch) | |
tree | c909c2989bc3329a5349e165b741f4804ae72942 /gdb/regformats | |
parent | deeafabb678e59d8585be6d765c7fbd0e7060b6c (diff) | |
download | gdb-13bff72615e5a93a6e5f28e83a594125e66ccced.zip gdb-13bff72615e5a93a6e5f28e83a594125e66ccced.tar.gz gdb-13bff72615e5a93a6e5f28e83a594125e66ccced.tar.bz2 |
Introduce basic_safe_range
This introduces the basic_safe_range class, which can be used to
create a basic_safe_iterator. This also changes basic_safe_iterator
in two ways.
First, it simplifies the constructor. This seemed unnecessarily
complicated to me, and keeping it this way would prevent the second
change...
... which is to add a second constructor for initializing the
one-past-the-end iterator that is stored in basic_safe_iterator.
gdb/ChangeLog
2019-12-12 Tom Tromey <tom@tromey.com>
* gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
second constructor.
(basic_safe_range): New class.
Change-Id: Ib351ef6fd435129a5053c64e5561877e1459ab37
Diffstat (limited to 'gdb/regformats')
0 files changed, 0 insertions, 0 deletions