From: Tom Tromey Date: Fri, 13 Dec 2019 15:48:44 +0000 (-0700) Subject: Fix the gdb build with GCC 7 X-Git-Url: http://git.efficios.com/?p=deliverable%2Fbinutils-gdb.git;a=commitdiff_plain;h=a5513db2f5513e84d52f77b8d9de484738ae5abe 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 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 81f70f27c9..f3ee0ba1e8 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 1a98b426ab..61af92a3aa 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 ()); }