diff options
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); |