This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] const-fy regcache::m_readonly_p
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 2 Nov 2017 15:16:44 -0000
- Subject: [binutils-gdb] const-fy regcache::m_readonly_p
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6c6e9412e930c96f48b8ee78a389437328f5283c
commit 6c6e9412e930c96f48b8ee78a389437328f5283c
Author: Yao Qi <yao.qi@linaro.org>
Date: Thu Nov 2 15:15:42 2017 +0000
const-fy regcache::m_readonly_p
gdb:
2017-11-02 Yao Qi <yao.qi@linaro.org>
* regcache.h (regcache) <m_readonly_p>: Change it to const bool.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/regcache.h | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c1a0cbe4..7cec806 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2017-11-02 Yao Qi <yao.qi@linaro.org>
+ * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
+
+2017-11-02 Yao Qi <yao.qi@linaro.org>
+
* breakpoint.c (insert_single_step_breakpoints): Update.
* frame.c (struct frame_info) <aspace>: Add const.
(frame_save_as_regcache): Add const.
diff --git a/gdb/regcache.h b/gdb/regcache.h
index 7eb56a7..05d96b3 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;