Fix the gdb build with GCC 7
authorTom Tromey <tromey@adacore.com>
Fri, 13 Dec 2019 15:48:44 +0000 (08:48 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 13 Dec 2019 18:29:02 +0000 (11:29 -0700)
The Solaris buildbot builder complained about some recent patches of
mine.  Building with GCC 7 failed.

This patch fixes the bug.  I'm checking it in.

gdb/ChangeLog
2019-12-13  Tom Tromey  <tromey@adacore.com>

* gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
end>: No longer "const".

Change-Id: I5f428fab61087f467ac3b6475f4ef4dbd314fcb0

gdb/ChangeLog
gdb/gdbsupport/safe-iterator.h

index 81f70f27c9f92d88b2c36c569cfae07689908882..f3ee0ba1e8fa0f7d304efeefc02e1b4565087de9 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-13  Tom Tromey  <tromey@adacore.com>
+
+       * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
+       end>: No longer "const".
+
 2019-12-13  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * jit.c: Fix indentation, replace spaces with tabs where
index 1a98b426ab28db2b90d24f582a270cbaa95b91a6..61af92a3aaf0fb8257cab6dcbb2d1d2872a66123 100644 (file)
@@ -117,12 +117,12 @@ public:
   {
   }
 
-  iterator begin () const
+  iterator begin ()
   {
     return iterator (m_range.begin (), m_range.end ());
   }
 
-  iterator end () const
+  iterator end ()
   {
     return iterator (m_range.end (), m_range.end ());
   }
This page took 0.030767 seconds and 4 git commands to generate.