[RFA 4/5] Remove make_cleanup_regcache_invalidate
Yao Qi
qiyaoltc@gmail.com
Mon Sep 25 20:04:00 GMT 2017
[I am in the travel, and fighting with jet-lag. Forgive me if I make
any stupid mistakes.]
On 17-09-23 20:46:07, Tom Tromey wrote:
>
> - regcache_invalidate (reg->regcache, reg->regnum);
> -}
> + ~regcache_invalidator ()
> + {
> + if (m_regcache != nullptr)
> + regcache_invalidator (m_regcache, m_regnum);
m_regcache->invalidate (m_regnum)?
I don't see why we need to call ctor in dtor.
--
Yao (é½å°§)
More information about the Gdb-patches
mailing list