diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:41 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:41 -0400 |
commit | 6aa7d72401387cacc5a7699520045ce9083a526a (patch) | |
tree | 66cf8aef286d14ad2ad46500ce081f6c7a227c09 /gdb/regcache.c | |
parent | 4f0420fdabda76f462bd29a02d9be575e0e0cce7 (diff) | |
download | gdb-6aa7d72401387cacc5a7699520045ce9083a526a.zip gdb-6aa7d72401387cacc5a7699520045ce9083a526a.tar.gz gdb-6aa7d72401387cacc5a7699520045ce9083a526a.tar.bz2 |
Remove regcache_invalidate
Remove regcache_invalidate, update callers to use
detached_regcache::invalidate instead.
gdb/ChangeLog:
* regcache.h (regcache_invalidate): Remove, update callers to
use detached_regcache::invalidate instead.
* regcache.c (regcache_invalidate): Remove.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 371322d..4dce978 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -238,7 +238,7 @@ public: ~regcache_invalidator () { if (m_regcache != nullptr) - regcache_invalidate (m_regcache, m_regnum); + m_regcache->invalidate (m_regnum); } DISABLE_COPY_AND_ASSIGN (regcache_invalidator); @@ -329,13 +329,6 @@ reg_buffer::get_register_status (int regnum) const } void -regcache_invalidate (struct regcache *regcache, int regnum) -{ - gdb_assert (regcache != NULL); - regcache->invalidate (regnum); -} - -void detached_regcache::invalidate (int regnum) { assert_regnum (regnum); |