gdb/s390: Fix build breakage due to std::min/std::max usage without header
authorPedro Alves <palves@redhat.com>
Sun, 18 Sep 2016 23:30:30 +0000 (00:30 +0100)
committerPedro Alves <palves@redhat.com>
Sun, 18 Sep 2016 23:30:30 +0000 (00:30 +0100)
  [...]
  .../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>.

gdb/ChangeLog
gdb/s390-linux-nat.c

index f86e0a43b98ec7d331760852ba6effca991df605..830d5de3751c417cec21f99c240773cbc9b6fa43 100644 (file)
@@ -1,3 +1,7 @@
+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
index 687502c87c064b430ed13c65311f771e33c30492..9abb5c23471d2c00964cebdf1e0d72a22880936a 100644 (file)
@@ -39,6 +39,7 @@
 #include <sys/procfs.h>
 #include <sys/ucontext.h>
 #include <elf.h>
+#include <algorithm>
 
 /* Per-thread arch-specific data.  */
 
This page took 0.041792 seconds and 4 git commands to generate.