This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Use scope_exit in regcache.c
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 24 Jan 2019 13:19:16 -0500
- Subject: [binutils-gdb] Use scope_exit in regcache.c
*** TEST RESULTS FOR COMMIT 311dc83a411c83d61cd6cb931289761574ea3ecc ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 311dc83a411c83d61cd6cb931289761574ea3ecc
Use scope_exit in regcache.c
This removes the regcache_invalidator class in favor of a scope_exit.
This seems like an improvement (albeit a minor one) because
regcache_invalidator is only used in a single spot.
gdb/ChangeLog:
2019-01-23 Tom Tromey <tom@tromey.com>
Pedro Alves <palves@redhat.com>
* regcache.c (class regcache_invalidator): Remove.
(regcache::raw_write): Use make_scope_exit.