From: Yao Qi Date: Thu, 2 Nov 2017 15:15:42 +0000 (+0000) Subject: const-fy regcache::m_readonly_p X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6c6e9412e930c96f48b8ee78a389437328f5283c;hp=8b86c9592117b3ba52921af11868dc0b81ce4858;p=deliverable%2Fbinutils-gdb.git const-fy regcache::m_readonly_p gdb: 2017-11-02 Yao Qi * regcache.h (regcache) : Change it to const bool. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c1a0cbe42a..7cec806109 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-11-02 Yao Qi + + * regcache.h (regcache) : Change it to const bool. + 2017-11-02 Yao Qi * breakpoint.c (insert_single_step_breakpoints): Update. diff --git a/gdb/regcache.h b/gdb/regcache.h index 7eb56a70f1..05d96b3f31 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -378,7 +378,7 @@ private: cache can only be updated via the methods regcache_dup() and regcache_cpy(). The actual contents are determined by the reggroup_save and reggroup_restore methods. */ - bool m_readonly_p; + const bool m_readonly_p; /* If this is a read-write cache, which thread's registers is it connected to? */ ptid_t m_ptid;