summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-09-19 00:30:30 +0100
committerPedro Alves <palves@redhat.com>2016-09-19 00:30:30 +0100
commit93689493b376c4e5616c1679733619f96202c369 (patch)
tree4a0303f3355ffbc0dcf7c6750715e2fb87be001d
parent768adc05c44c7e8b5c0f9ca5ad3ca96657715293 (diff)
downloadbinutils-gdb-93689493b376c4e5616c1679733619f96202c369.tar.gz
gdb/s390: Fix build breakage due to std::min/std::max usage without header
[...] .../gdb/s390-linux-nat.c: In function 'void s390_prepare_to_resume(lwp_info*)': .../gdb/s390-linux-nat.c:703:20: error: 'min' is not a member of 'std' watch_lo_addr = std::min (watch_lo_addr, area->lo_addr); [...] gdb/ChangeLog: 2016-09-18 Pedro Alves <palves@redhat.com> * s390-linux-nat.c: Include <algorithm>.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/s390-linux-nat.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f86e0a43b98..830d5de3751 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2016-09-18 Pedro Alves <palves@redhat.com>
+ * s390-linux-nat.c: Include <algorithm>.
+
+2016-09-18 Pedro Alves <palves@redhat.com>
+
* breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
specify the std:min/std::max specialization.
* exec.c (section_table_read_available_memory): Likewise.
diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c
index 687502c87c0..9abb5c23471 100644
--- a/gdb/s390-linux-nat.c
+++ b/gdb/s390-linux-nat.c
@@ -39,6 +39,7 @@
#include <sys/procfs.h>
#include <sys/ucontext.h>
#include <elf.h>
+#include <algorithm>
/* Per-thread arch-specific data. */