const-fy regcache::m_readonly_p
authorYao Qi <yao.qi@linaro.org>
Thu, 2 Nov 2017 15:15:42 +0000 (15:15 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 2 Nov 2017 15:15:42 +0000 (15:15 +0000)
gdb:

2017-11-02  Yao Qi  <yao.qi@linaro.org>

* regcache.h (regcache) <m_readonly_p>: Change it to const bool.

gdb/ChangeLog
gdb/regcache.h

index c1a0cbe42aac3923735683fe1f645c3437f6cedf..7cec806109b83d47b75daf3ea2406d1a99f21856 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 7eb56a70f1458e9907bdbcf3d908c38d7eba795a..05d96b3f31fef270af8519e6e5ac75a4826e2e9c 100644 (file)
@@ -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;
This page took 0.042945 seconds and 4 git commands to generate.