aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-05-19 11:46:02 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2021-05-19 13:31:19 -0700
commit5433e20ec1c539bb53b47ca818f4742b403e3c23 (patch)
tree45a8013d56d993d3bd2664e042f649fdc693dc1f /gdb/dwarf2
parent17bb1d80f5f7a4e5894939d994972878ba95f5b7 (diff)
downloadgdb-5433e20ec1c539bb53b47ca818f4742b403e3c23.zip
gdb-5433e20ec1c539bb53b47ca818f4742b403e3c23.tar.gz
gdb-5433e20ec1c539bb53b47ca818f4742b403e3c23.tar.bz2
Mark tu_abbrev_offset::operator<() const.
clang 11 with libc++'s <algorithm> fails to match the existing operator<() for std::less<> since the method is not marked const. gdb/ChangeLog: * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r--gdb/dwarf2/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 8a57aee..2cd8a95 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -7116,7 +7116,7 @@ struct tu_abbrev_offset
{}
/* This is used when sorting. */
- bool operator< (const tu_abbrev_offset &other)
+ bool operator< (const tu_abbrev_offset &other) const
{
return abbrev_offset < other.abbrev_offset;
}