[PATCH 7/8] const-fy regcache::m_readonly_p

Yao Qi
2017-10-27T09:31:59Z

gdb:

2017-10-23 Yao Qi <yao.qi@linaro.org>

* regcache.h (regcache) <m_readonly_p>: Change it to const bool.
---
gdb/regcache.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/regcache.h b/gdb/regcache.h
index be87af5..98cb095 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -376,7 +376,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;
--
1.9.1