From a5513db2f5513e84d52f77b8d9de484738ae5abe Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 13 Dec 2019 08:48:44 -0700 Subject: [PATCH] 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 * gdbsupport/safe-iterator.h (class basic_safe_range) : No longer "const". Change-Id: I5f428fab61087f467ac3b6475f4ef4dbd314fcb0 --- gdb/ChangeLog | 5 +++++ gdb/gdbsupport/safe-iterator.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 81f70f27c9f..f3ee0ba1e8f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-12-13 Tom Tromey + + * gdbsupport/safe-iterator.h (class basic_safe_range) : No longer "const". + 2019-12-13 Simon Marchi * jit.c: Fix indentation, replace spaces with tabs where diff --git a/gdb/gdbsupport/safe-iterator.h b/gdb/gdbsupport/safe-iterator.h index 1a98b426ab2..61af92a3aaf 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 ()); } -- 2.30.2