aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-12-13 08:48:44 -0700
committerTom Tromey <tromey@adacore.com>2019-12-13 11:29:02 -0700
commita5513db2f5513e84d52f77b8d9de484738ae5abe (patch)
tree1b7bfd2eb0b5b77f9f41daccfe112b3dc6ec9324
parent3a90f26667396bed62345027503d943d8213f02b (diff)
downloadgdb-a5513db2f5513e84d52f77b8d9de484738ae5abe.zip
gdb-a5513db2f5513e84d52f77b8d9de484738ae5abe.tar.gz
gdb-a5513db2f5513e84d52f77b8d9de484738ae5abe.tar.bz2
Fix the gdb build with GCC 7
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
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbsupport/safe-iterator.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 81f70f2..f3ee0ba 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/gdbsupport/safe-iterator.h b/gdb/gdbsupport/safe-iterator.h
index 1a98b42..61af92a 100644
--- a/gdb/gdbsupport/safe-iterator.h
+++ b/gdb/gdbsupport/safe-iterator.h
@@ -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 ());
}