Remove make_cleanup_regcache_invalidate
authorTom Tromey <tom@tromey.com>
Sat, 23 Sep 2017 21:53:30 +0000 (15:53 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 26 Sep 2017 01:54:08 +0000 (19:54 -0600)
commitb292235f666ff2123e26794db73d5a27a685e7be
tree51df281436efbdbff9c449f3ab5928c2ecd90174
parent9ac86b52da268147b2565e4920357432bb7a34c3
Remove make_cleanup_regcache_invalidate

This removes make_cleanup_regcache_invalidate in favor of a simple
RAII class that handles register invalidation.

gdb/ChangeLog
2017-09-25  Tom Tromey  <tom@tromey.com>

* regcache.c (class regcache_invalidator): New.
(struct register_to_invalidate): Remove.
(make_cleanup_regcache_invalidate): Remove.
(regcache::raw_write): Use regcache_invalidator.
gdb/ChangeLog
gdb/regcache.c