Fix more GDB build breakage on mingw32
authorPedro Alves <palves@redhat.com>
Fri, 6 Oct 2017 10:58:56 +0000 (11:58 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 6 Oct 2017 10:58:56 +0000 (11:58 +0100)
With F23's mingw gcc 5.3.0, I'm seeing:

 i686-w64-mingw32-g++ -x c++ -std=gnu++11 -g3 -O0   -I. -I../../src/gdb -I../../src/gdb/common -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../opcodes/.. -I../../src/gdb/../readline/.. -I../../src/gdb/../zlib -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -I../libdecnumber -I../../src/gdb/../libdecnumber  -I../../src/gdb/gnulib/import -Ibuild-gnulib/import   -I/home/pedro/src/expat/install-win32//include   -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized -Wno-format -Werror -c -o windows-nat.o -MT windows-nat.o -MMD -MP -MF ./.deps/windows-nat.o.Tpo ../../src/gdb/windows-nat.c
 ../../src/gdb/windows-nat.c: In function 'void windows_create_inferior(target_ops*, const char*, const string&, char**, int)':
 ../../src/gdb/windows-nat.c:2476:7: error: 'replace' is not a member of 'std'
std::replace (expanded_infcwd.begin (), expanded_infcwd.end (),
^

gdb/Changelog:
2017-10-06  Pedro Alves  <palves@redhat.com>

* windows-nat.c: Include <algorithm>.

gdb/ChangeLog
gdb/windows-nat.c

index 0f924390badb879bebf315b1e85a308aef054cb5..559c3b8f48b918c2635c4108affc20232bb335a5 100644 (file)
@@ -1,3 +1,7 @@
+2017-10-06  Pedro Alves  <palves@redhat.com>
+
+       * windows-nat.c: Include <algorithm>.
+
 2017-10-06  Yao Qi  <yao.qi@linaro.org>
 
        * configure.tgt (i386_tobjs): New variable.
index 1ef38fb32b4bd8cb9d9907ba1c7d728658a9f446..98c32d8b58556265f02fc8e3d454897ee78a3366 100644 (file)
@@ -42,6 +42,7 @@
 #include <sys/cygwin.h>
 #include <cygwin/version.h>
 #endif
+#include <algorithm>
 
 #include "buildsym.h"
 #include "filenames.h"
This page took 0.032193 seconds and 4 git commands to generate.