This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 4/5] Remove make_cleanup_regcache_invalidate


[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 (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]