Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb merge 8.0.1, not working yet.



details:   https://anonhg.NetBSD.org/src/rev/5827c60f816d
branches:  trunk
changeset: 357812:5827c60f816d
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Nov 28 22:04:52 2017 +0000

description:
merge 8.0.1, not working yet.

diffstat:

 external/gpl3/gdb/bin/gdb/Makefile                                |    11 +-
 external/gpl3/gdb/dist/bfd/bfdio.c                                |     8 +-
 external/gpl3/gdb/dist/bfd/config.bfd                             |   158 +-
 external/gpl3/gdb/dist/bfd/configure                              |    94 +-
 external/gpl3/gdb/dist/bfd/doc/Makefile.am                        |     5 +-
 external/gpl3/gdb/dist/bfd/doc/Makefile.in                        |     6 +-
 external/gpl3/gdb/dist/bfd/doc/bfd.info                           |   Bin 
 external/gpl3/gdb/dist/bfd/elf.c                                  |   403 +-
 external/gpl3/gdb/dist/bfd/elf32-arm.c                            |  1573 ++-
 external/gpl3/gdb/dist/bfd/elf32-i386.c                           |   374 +-
 external/gpl3/gdb/dist/bfd/merge.c                                |    11 +-
 external/gpl3/gdb/dist/bfd/netbsd-core.c                          |     2 +-
 external/gpl3/gdb/dist/config.guess                               |    12 +-
 external/gpl3/gdb/dist/config.sub                                 |    14 +-
 external/gpl3/gdb/dist/gdb/ada-lang.c                             |   351 +-
 external/gpl3/gdb/dist/gdb/alpha-tdep.c                           |    70 +-
 external/gpl3/gdb/dist/gdb/alphabsd-nat.c                         |   207 -
 external/gpl3/gdb/dist/gdb/alphabsd-tdep.c                        |    56 -
 external/gpl3/gdb/dist/gdb/alphabsd-tdep.h                        |    40 -
 external/gpl3/gdb/dist/gdb/alphafbsd-tdep.c                       |   132 -
 external/gpl3/gdb/dist/gdb/alphanbsd-tdep.c                       |   378 -
 external/gpl3/gdb/dist/gdb/alphaobsd-tdep.c                       |   137 -
 external/gpl3/gdb/dist/gdb/amd64bsd-nat.c                         |   160 -
 external/gpl3/gdb/dist/gdb/amd64fbsd-nat.c                        |   291 -
 external/gpl3/gdb/dist/gdb/amd64fbsd-tdep.c                       |   319 -
 external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c                        |   183 -
 external/gpl3/gdb/dist/gdb/amd64nbsd-tdep.c                       |   309 -
 external/gpl3/gdb/dist/gdb/amd64obsd-nat.c                        |   144 -
 external/gpl3/gdb/dist/gdb/amd64obsd-tdep.c                       |   514 -
 external/gpl3/gdb/dist/gdb/arm-tdep.c                             |   773 +-
 external/gpl3/gdb/dist/gdb/armbsd-tdep.c                          |   122 -
 external/gpl3/gdb/dist/gdb/armnbsd-nat.c                          |   634 -
 external/gpl3/gdb/dist/gdb/armnbsd-tdep.c                         |   129 -
 external/gpl3/gdb/dist/gdb/armobsd-tdep.c                         |   140 -
 external/gpl3/gdb/dist/gdb/bsd-kvm.c                              |     4 +-
 external/gpl3/gdb/dist/gdb/build-with-cxx.m4                      |    43 -
 external/gpl3/gdb/dist/gdb/common/agent.c                         |     2 +-
 external/gpl3/gdb/dist/gdb/common/common-defs.h                   |    45 +-
 external/gpl3/gdb/dist/gdb/config/alpha/fbsd.mh                   |     6 -
 external/gpl3/gdb/dist/gdb/configure                              |  1132 ++-
 external/gpl3/gdb/dist/gdb/configure.ac                           |    28 +-
 external/gpl3/gdb/dist/gdb/configure.host                         |     5 +-
 external/gpl3/gdb/dist/gdb/configure.tgt                          |   120 +-
 external/gpl3/gdb/dist/gdb/dtrace-probe.c                         |     5 +-
 external/gpl3/gdb/dist/gdb/environ.c                              |   184 -
 external/gpl3/gdb/dist/gdb/environ.h                              |    49 -
 external/gpl3/gdb/dist/gdb/event-loop.h                           |     2 +-
 external/gpl3/gdb/dist/gdb/features/arm-core.xml                  |    31 -
 external/gpl3/gdb/dist/gdb/features/arm-fpa.xml                   |    23 -
 external/gpl3/gdb/dist/gdb/features/arm-m-profile.xml             |    27 -
 external/gpl3/gdb/dist/gdb/features/arm-vfpv2.xml                 |    28 -
 external/gpl3/gdb/dist/gdb/features/arm-vfpv3.xml                 |    44 -
 external/gpl3/gdb/dist/gdb/features/arm-with-iwmmxt.c             |    82 -
 external/gpl3/gdb/dist/gdb/features/arm-with-iwmmxt.xml           |    13 -
 external/gpl3/gdb/dist/gdb/features/arm-with-m-fpa-layout.c       |    46 -
 external/gpl3/gdb/dist/gdb/features/arm-with-m-fpa-layout.xml     |    46 -
 external/gpl3/gdb/dist/gdb/features/arm-with-m-vfp-d16.c          |    56 -
 external/gpl3/gdb/dist/gdb/features/arm-with-m-vfp-d16.xml        |    14 -
 external/gpl3/gdb/dist/gdb/features/arm-with-m.c                  |    37 -
 external/gpl3/gdb/dist/gdb/features/arm-with-m.xml                |    12 -
 external/gpl3/gdb/dist/gdb/features/arm-with-neon.c               |    74 -
 external/gpl3/gdb/dist/gdb/features/arm-with-neon.xml             |    14 -
 external/gpl3/gdb/dist/gdb/features/arm-with-vfpv2.c              |    56 -
 external/gpl3/gdb/dist/gdb/features/arm-with-vfpv2.xml            |    13 -
 external/gpl3/gdb/dist/gdb/features/arm-with-vfpv3.c              |    72 -
 external/gpl3/gdb/dist/gdb/features/arm-with-vfpv3.xml            |    13 -
 external/gpl3/gdb/dist/gdb/features/i386/amd64-avx512-linux.c     |   322 -
 external/gpl3/gdb/dist/gdb/features/i386/amd64-avx512-linux.xml   |    20 -
 external/gpl3/gdb/dist/gdb/features/i386/amd64-avx512.c           |   317 -
 external/gpl3/gdb/dist/gdb/features/i386/amd64-avx512.xml         |    18 -
 external/gpl3/gdb/dist/gdb/features/i386/i386-avx512-linux.c      |   208 -
 external/gpl3/gdb/dist/gdb/features/i386/i386-avx512-linux.xml    |    20 -
 external/gpl3/gdb/dist/gdb/features/i386/i386-avx512.c            |   203 -
 external/gpl3/gdb/dist/gdb/features/i386/i386-avx512.xml          |    18 -
 external/gpl3/gdb/dist/gdb/features/i386/x32-avx512-linux.c       |   322 -
 external/gpl3/gdb/dist/gdb/features/i386/x32-avx512-linux.xml     |    20 -
 external/gpl3/gdb/dist/gdb/features/i386/x32-avx512.c             |   317 -
 external/gpl3/gdb/dist/gdb/features/i386/x32-avx512.xml           |    18 -
 external/gpl3/gdb/dist/gdb/features/xscale-iwmmxt.xml             |    44 -
 external/gpl3/gdb/dist/gdb/gdbserver/terminal.h                   |    51 -
 external/gpl3/gdb/dist/gdb/hppa-tdep.c                            |    68 +-
 external/gpl3/gdb/dist/gdb/hppa-tdep.h                            |     2 +-
 external/gpl3/gdb/dist/gdb/hppabsd-tdep.c                         |   141 -
 external/gpl3/gdb/dist/gdb/hppabsd-tdep.h                         |    25 -
 external/gpl3/gdb/dist/gdb/hppanbsd-nat.c                         |   291 -
 external/gpl3/gdb/dist/gdb/hppanbsd-tdep.c                        |   250 -
 external/gpl3/gdb/dist/gdb/hppaobsd-nat.c                         |   265 -
 external/gpl3/gdb/dist/gdb/hppaobsd-tdep.c                        |   195 -
 external/gpl3/gdb/dist/gdb/i386bsd-nat.c                          |   367 -
 external/gpl3/gdb/dist/gdb/i386bsd-nat.h                          |    32 -
 external/gpl3/gdb/dist/gdb/i386bsd-tdep.c                         |   123 -
 external/gpl3/gdb/dist/gdb/i386fbsd-nat.c                         |   197 -
 external/gpl3/gdb/dist/gdb/i386fbsd-tdep.c                        |   498 -
 external/gpl3/gdb/dist/gdb/i386fbsd-tdep.h                        |    31 -
 external/gpl3/gdb/dist/gdb/i386gnu-nat.c                          |   436 -
 external/gpl3/gdb/dist/gdb/i386gnu-tdep.c                         |    71 -
 external/gpl3/gdb/dist/gdb/i386nbsd-nat.c                         |   166 -
 external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c                        |   482 -
 external/gpl3/gdb/dist/gdb/i386obsd-nat.c                         |   129 -
 external/gpl3/gdb/dist/gdb/i386obsd-tdep.c                        |   520 -
 external/gpl3/gdb/dist/gdb/i386v4-nat.c                           |   163 -
 external/gpl3/gdb/dist/gdb/inf-ptrace.c                           |   175 +-
 external/gpl3/gdb/dist/gdb/jv-exp.y                               |  1434 ---
 external/gpl3/gdb/dist/gdb/jv-lang.c                              |  1272 --
 external/gpl3/gdb/dist/gdb/jv-lang.h                              |    79 -
 external/gpl3/gdb/dist/gdb/jv-typeprint.c                         |   355 -
 external/gpl3/gdb/dist/gdb/jv-valprint.c                          |   532 -
 external/gpl3/gdb/dist/gdb/jv-varobj.c                            |   107 -
 external/gpl3/gdb/dist/gdb/m68kbsd-nat.c                          |   279 -
 external/gpl3/gdb/dist/gdb/m68kbsd-tdep.c                         |   270 -
 external/gpl3/gdb/dist/gdb/m68klinux-nat.c                        |   542 -
 external/gpl3/gdb/dist/gdb/m68klinux-tdep.c                       |   435 -
 external/gpl3/gdb/dist/gdb/m88kbsd-nat.c                          |   111 -
 external/gpl3/gdb/dist/gdb/mips-tdep.h                            |     4 +-
 external/gpl3/gdb/dist/gdb/mips64obsd-nat.c                       |   126 -
 external/gpl3/gdb/dist/gdb/mips64obsd-tdep.c                      |   170 -
 external/gpl3/gdb/dist/gdb/mipsnbsd-nat.c                         |   206 -
 external/gpl3/gdb/dist/gdb/mipsnbsd-tdep.c                        |   398 -
 external/gpl3/gdb/dist/gdb/mipsnbsd-tdep.h                        |    29 -
 external/gpl3/gdb/dist/gdb/nbsd-tdep.c                            |     2 +-
 external/gpl3/gdb/dist/gdb/nbsd-tdep.h                            |     2 +-
 external/gpl3/gdb/dist/gdb/nbsd-thread.c                          |     9 +-
 external/gpl3/gdb/dist/gdb/objfiles.c                             |    28 +-
 external/gpl3/gdb/dist/gdb/p-exp.y                                |     8 +-
 external/gpl3/gdb/dist/gdb/ppcfbsd-nat.c                          |   219 -
 external/gpl3/gdb/dist/gdb/ppcfbsd-tdep.c                         |   353 -
 external/gpl3/gdb/dist/gdb/ppcfbsd-tdep.h                         |    29 -
 external/gpl3/gdb/dist/gdb/ppcnbsd-nat.c                          |   244 -
 external/gpl3/gdb/dist/gdb/ppcnbsd-tdep.c                         |   227 -
 external/gpl3/gdb/dist/gdb/ppcnbsd-tdep.h                         |    32 -
 external/gpl3/gdb/dist/gdb/ppcobsd-nat.c                          |   231 -
 external/gpl3/gdb/dist/gdb/ppcobsd-tdep.c                         |   327 -
 external/gpl3/gdb/dist/gdb/ppcobsd-tdep.h                         |    52 -
 external/gpl3/gdb/dist/gdb/regcache.c                             |   104 +-
 external/gpl3/gdb/dist/gdb/regformats/arm-with-iwmmxt.dat         |    53 -
 external/gpl3/gdb/dist/gdb/regformats/arm-with-neon.dat           |    64 -
 external/gpl3/gdb/dist/gdb/regformats/arm-with-vfpv2.dat          |    48 -
 external/gpl3/gdb/dist/gdb/regformats/arm-with-vfpv3.dat          |    64 -
 external/gpl3/gdb/dist/gdb/regformats/i386/amd64-avx512-linux.dat |   157 -
 external/gpl3/gdb/dist/gdb/regformats/i386/amd64-avx512.dat       |   156 -
 external/gpl3/gdb/dist/gdb/regformats/i386/i386-avx512-linux.dat  |    77 -
 external/gpl3/gdb/dist/gdb/regformats/i386/i386-avx512.dat        |    76 -
 external/gpl3/gdb/dist/gdb/regformats/i386/x32-avx512-linux.dat   |   157 -
 external/gpl3/gdb/dist/gdb/regformats/i386/x32-avx512.dat         |   156 -
 external/gpl3/gdb/dist/gdb/remote.c                               |   875 +-
 external/gpl3/gdb/dist/gdb/rust-exp.c                             |  4729 +++++----
 external/gpl3/gdb/dist/gdb/sh-tdep.c                              |    74 +-
 external/gpl3/gdb/dist/gdb/shnbsd-nat.c                           |   131 -
 external/gpl3/gdb/dist/gdb/shnbsd-tdep.c                          |   245 -
 external/gpl3/gdb/dist/gdb/solib.c                                |   259 +-
 external/gpl3/gdb/dist/gdb/sparc-nat.c                            |    25 +-
 external/gpl3/gdb/dist/gdb/sparc64fbsd-nat.c                      |    79 -
 external/gpl3/gdb/dist/gdb/sparc64fbsd-tdep.c                     |   252 -
 external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.c                      |   227 -
 external/gpl3/gdb/dist/gdb/sparc64nbsd-tdep.c                     |   280 -
 external/gpl3/gdb/dist/gdb/sparc64obsd-nat.c                      |   131 -
 external/gpl3/gdb/dist/gdb/sparc64obsd-tdep.c                     |   452 -
 external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c                        |   111 -
 external/gpl3/gdb/dist/gdb/sparcnbsd-tdep.c                       |   378 -
 external/gpl3/gdb/dist/gdb/sparcobsd-tdep.c                       |   258 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.arch/powerpc-power.exp   |   318 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.arch/powerpc-power.s     |   271 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.base/tui-layout.exp      |    29 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.dwarf2/implptr-64bit.S   |   226 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jmain.exp           |    87 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jmain.java          |     7 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jmisc.exp           |   104 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jmisc.java          |     7 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jnpe.exp            |    55 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jnpe.java           |    39 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jprint.exp          |    77 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jprint.java         |    68 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jv-exp.exp          |    41 -
 external/gpl3/gdb/dist/gdb/testsuite/gdb.java/jv-print.exp        |   153 -
 external/gpl3/gdb/dist/gdb/testsuite/lib/java.exp                 |   123 -
 external/gpl3/gdb/dist/gdb/tui/tui-stack.c                        |    35 +-
 external/gpl3/gdb/dist/gdb/ui-file.c                              |   800 +-
 external/gpl3/gdb/dist/gdb/user-regs.c                            |     2 +-
 external/gpl3/gdb/dist/gdb/utils.c                                |   203 +-
 external/gpl3/gdb/dist/gdb/varobj.c                               |   370 +-
 external/gpl3/gdb/dist/gdb/vaxbsd-nat.c                           |   174 -
 external/gpl3/gdb/dist/gdb/vaxnbsd-tdep.c                         |    46 -
 external/gpl3/gdb/dist/gdb/vaxobsd-tdep.c                         |   178 -
 external/gpl3/gdb/dist/gdb/x86-bsd-nat.c                          |     8 +-
 external/gpl3/gdb/dist/gdb/x86bsd-nat.c                           |   156 -
 external/gpl3/gdb/dist/gdb/x86bsd-nat.h                           |    31 -
 external/gpl3/gdb/dist/include/elf/common.h                       |   132 +-
 external/gpl3/gdb/dist/include/opcode/ppc.h                       |   298 +-
 external/gpl3/gdb/dist/libiberty/make-temp-file.c                 |     3 +-
 external/gpl3/gdb/dist/opcodes/arm-dis.c                          |   251 +-
 external/gpl3/gdb/dist/opcodes/cgen.sh                            |     2 +-
 external/gpl3/gdb/dist/opcodes/configure                          |    81 +-
 external/gpl3/gdb/dist/readline/display.c                         |     4 +-
 external/gpl3/gdb/dist/readline/util.c                            |    15 +
 external/gpl3/gdb/dist/sim/common/callback.c                      |     2 +-
 external/gpl3/gdb/dist/sim/mn10300/Makefile.in                    |     2 +-
 external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c                      |     6 +-
 external/gpl3/gdb/dist/sim/v850/Makefile.in                       |     2 +-
 external/gpl3/gdb/dist/zlib/as400/bndsrc                          |   215 -
 external/gpl3/gdb/dist/zlib/as400/compile.clp                     |   110 -
 external/gpl3/gdb/dist/zlib/as400/readme.txt                      |   115 -
 external/gpl3/gdb/dist/zlib/as400/zlib.inc                        |   451 -
 external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd-in3.h                |   191 +-
 external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd.h                    |   191 +-
 external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd_stdint.h             |     4 +-
 external/gpl3/gdb/lib/libbfd/arch/x86_64/bfdver.h                 |     8 +-
 external/gpl3/gdb/lib/libbfd/arch/x86_64/config.h                 |     8 +-
 external/gpl3/gdb/lib/libbfd/arch/x86_64/defs.mk                  |     8 +-
 external/gpl3/gdb/lib/libbfd/arch/x86_64/targmatch.h              |   137 +-
 external/gpl3/gdb/lib/libdecnumber/arch/x86_64/config.h           |     7 +-
 external/gpl3/gdb/lib/libdecnumber/arch/x86_64/defs.mk            |     6 +-
 external/gpl3/gdb/lib/libdecnumber/arch/x86_64/gstdint.h          |     4 +-
 external/gpl3/gdb/lib/libgdb/Makefile                             |    14 +-
 external/gpl3/gdb/lib/libgdb/arch/x86_64/build-gnulib/config.h    |    68 +-
 external/gpl3/gdb/lib/libgdb/arch/x86_64/config.h                 |    29 +-
 external/gpl3/gdb/lib/libgdb/arch/x86_64/defs.mk                  |     6 +-
 external/gpl3/gdb/lib/libgdb/arch/x86_64/init.c                   |   390 +-
 external/gpl3/gdb/lib/libgdb/arch/x86_64/jit-reader.h             |     4 +-
 external/gpl3/gdb/lib/libgdb/arch/x86_64/observer.h               |     4 +-
 external/gpl3/gdb/lib/libgdb/arch/x86_64/observer.inc             |     4 +-
 external/gpl3/gdb/lib/libgdb/arch/x86_64/version.c                |     4 +-
 external/gpl3/gdb/lib/libgdb/arch/x86_64/xml-builtin.c            |   361 +-
 external/gpl3/gdb/lib/libgdb/common-agent.c                       |     2 +-
 external/gpl3/gdb/lib/libiberty/arch/x86_64/config.h              |     6 +-
 external/gpl3/gdb/lib/libiberty/arch/x86_64/defs.mk               |     4 +-
 external/gpl3/gdb/lib/libopcodes/arch/x86_64/config.h             |     8 +-
 external/gpl3/gdb/lib/libopcodes/arch/x86_64/defs.mk              |     2 +-
 external/gpl3/gdb/lib/libreadline/arch/x86_64/config.h            |     7 +-
 external/gpl3/gdb/lib/libreadline/arch/x86_64/defs.mk             |     8 +-
 229 files changed, 9233 insertions(+), 31890 deletions(-)

diffs (truncated from 50414 to 300 lines):

diff -r cfc5207a38ae -r 5827c60f816d external/gpl3/gdb/bin/gdb/Makefile
--- a/external/gpl3/gdb/bin/gdb/Makefile        Tue Nov 28 18:16:59 2017 +0000
+++ b/external/gpl3/gdb/bin/gdb/Makefile        Tue Nov 28 22:04:52 2017 +0000
@@ -1,5 +1,6 @@
-#      $NetBSD: Makefile,v 1.10 2017/02/07 22:53:19 kamil Exp $
+#      $NetBSD: Makefile,v 1.11 2017/11/28 22:04:52 christos Exp $
 
+NOCTF=
 .include <bsd.own.mk>
 .include "../Makefile.inc"
 
@@ -82,10 +83,16 @@
        ${LIBTERMINFO} \
        ${LIBIBERTYDIR}/libiberty.a
 
-LDADD+=                -lexpat -llzma -lz -lcurses -lintl -lm -lkvm
+LDADD+=                -lexpat -llzma -lz -lcurses -lintl -lm -lkvm 
 DPADD+=                ${LIBEXPAT} ${LIBLZMA} ${LIBZ} ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
 
 .include <bsd.prog.mk>
 
+# Force c++
+HOST_CC:=       ${HOST_CXX} -std=gnu++11 -Wno-error=stack-protector
+CC:=            ${CXX} -std=gnu++11 -Wno-error=stack-protector
+CFLAGS:=        ${CXXFLAGS}
+
+
 .PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
     ${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${GDB_MACHINE_ARCH}
diff -r cfc5207a38ae -r 5827c60f816d external/gpl3/gdb/dist/bfd/bfdio.c
--- a/external/gpl3/gdb/dist/bfd/bfdio.c        Tue Nov 28 18:16:59 2017 +0000
+++ b/external/gpl3/gdb/dist/bfd/bfdio.c        Tue Nov 28 22:04:52 2017 +0000
@@ -1,6 +1,6 @@
 /* Low-level I/O routines for BFDs.
 
-   Copyright (C) 1990-2016 Free Software Foundation, Inc.
+   Copyright (C) 1990-2017 Free Software Foundation, Inc.
 
    Written by Cygnus Support.
 
@@ -41,7 +41,7 @@
 #endif
 
 file_ptr
-real_ftell (FILE *file)
+_bfd_real_ftell (FILE *file)
 {
 #if defined (HAVE_FTELLO64)
   return ftello64 (file);
@@ -53,7 +53,7 @@
 }
 
 int
-real_fseek (FILE *file, file_ptr offset, int whence)
+_bfd_real_fseek (FILE *file, file_ptr offset, int whence)
 {
 #if defined (HAVE_FSEEKO64)
   return fseeko64 (file, offset, whence);
@@ -82,7 +82,7 @@
 }
 
 FILE *
-real_fopen (const char *filename, const char *modes)
+_bfd_real_fopen (const char *filename, const char *modes)
 {
 #ifdef VMS
   char *vms_attr;
diff -r cfc5207a38ae -r 5827c60f816d external/gpl3/gdb/dist/bfd/config.bfd
--- a/external/gpl3/gdb/dist/bfd/config.bfd     Tue Nov 28 18:16:59 2017 +0000
+++ b/external/gpl3/gdb/dist/bfd/config.bfd     Tue Nov 28 22:04:52 2017 +0000
@@ -1,6 +1,6 @@
 # config.bfd
 #
-#   Copyright (C) 2012-2016 Free Software Foundation, Inc.
+#   Copyright (C) 2012-2017 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -53,6 +53,71 @@
     echo "*** Use or1k-*-elf or or1k-*-linux as the target instead" >&2
     exit 1
     ;;
+ i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu | \
+ mips*-*-irix5* | mips*-*-irix6*)
+    # Not obsolete
+    ;;
+ *-*-netware* | \
+ arm-epoc-pe* | \
+ arm*-*-aout | \
+ arm*-*-coff | \
+ h8300*-*-coff | \
+ h8500*-*-coff | \
+ i[3-7]86-*-sco3.2v5*coff | \
+ i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
+ i[3-7]86-*-sco3.2v5* | \
+ i[3-7]86-*-dgux* | i[3-7]86-*-sysv5* | \
+ i[3-7]86-*-chorus* | \
+ i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \
+ i[3-7]86-*-aix* | \
+ i[3-7]86-sequent-bsd* | \
+ i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
+ i[3-7]86-*-freebsd[12] | \
+ i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
+ i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3] | \
+ i[3-7]86-*-netware* | \
+ i[3-7]86-*-linux*aout* | \
+ i[3-7]86-*-mach* | i[3-7]86-*-osf1mk* | \
+ i[3-7]86-*-os9k | \
+ i[3-7]86-none-* | \
+ i[3-7]86-*-aout* | i[3-7]86*-*-vsta* | \
+ i860-*-* | \
+ i960-*-* | \
+ m68*-motorola-sysv* | m68*-hp-bsd* | m68*-*-aout* | \
+ m68*-*-coff* | m68*-*-sysv* | \
+ m68*-*-hpux* | \
+ m68*-*-linux*aout* | \
+ m68*-hp*-netbsd* | \
+ m68*-*-netbsdaout* | \
+ m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
+ m68*-*-bsd* | m68*-*-vsta* | \
+ m68*-ericsson-* | \
+ m68*-*-psos* | \
+ m88*-*-* | \
+ mips*-big-* | \
+ mips*-dec-* | mips*el-*-ecoff* | \
+ mips*-*-ecoff* | \
+ mips*-sgi-* | mips*-*-bsd* | \
+ mips*-*-lnews* | \
+ mips*-*-sysv* | mips*-*-riscos* | \
+ sh*-*-symbianelf* | \
+ sparclet-*-aout* | \
+ sparc86x-*-aout* | \
+ sparc*-*-chorus* | \
+ sparc-*-linux*aout* | \
+ sparc-*-netbsdaout* | \
+ sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1] | \
+ sparc-*-netware* | \
+ sparc64-*-aout* | \
+ sparc*-*-coff* | \
+ tahoe-*-* | \
+ vax-*-bsd* | vax-*-ultrix* | \
+ we32k-*-* | \
+ w65-*-* | \
+ *-*-ieee* | \
+ *-adobe-* | \
+ *-sony-* | \
+ *-tandem-* | \
  i370-* | \
  sh5*-*-* | sh64*-*-* | \
  null)
@@ -67,20 +132,18 @@
 
 case $targ in
  *-go32-rtems* | \
+ *-*-rtemsaout* | \
+ *-*-rtemscoff* | \
  a29k-* | \
  arm-*-oabi | \
  hppa*-*-rtems* | \
  i960-*-rtems* | \
- i[3-7]86*-*-rtemscoff* | \
  m68*-*-lynxos* | \
- m68*-*-rtemscoff* | \
  m68*-apollo-* | \
  m68*-apple-aux* | \
  m68*-bull-sysv* | \
  maxq-*-coff | \
  mips*el-*-rtems* | \
- powerpcle-*-rtems* | \
- sparc*-*-rtemsaout* | \
  sparc-*-lynxos* | \
  vax-*-vms* | \
  null)
@@ -109,6 +172,7 @@
 hppa*)          targ_archs=bfd_hppa_arch ;;
 i[3-7]86)       targ_archs=bfd_i386_arch ;;
 i370)           targ_archs=bfd_i370_arch ;;
+ia16)           targ_archs=bfd_i386_arch ;;
 lm32)           targ_archs=bfd_lm32_arch ;;
 m5200|m5407)    targ_archs=bfd_m68k_arch ;;
 m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
@@ -123,6 +187,8 @@
 pdp11*)                 targ_archs=bfd_pdp11_arch ;;
 pj*)            targ_archs="bfd_pj_arch bfd_i386_arch";;
 powerpc*)       targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
+pru*)           targ_archs=bfd_pru_arch ;;
+riscv*)                 targ_archs=bfd_riscv_arch ;;
 rs6000)                 targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
 s390*)          targ_archs=bfd_s390_arch ;;
 sh*)            targ_archs=bfd_sh_arch ;;
@@ -132,6 +198,7 @@
 tilepro*)       targ_archs=bfd_tilepro_arch ;;
 v850*)          targ_archs="bfd_v850_arch bfd_v850_rh850_arch" ;;
 visium*)        targ_archs=bfd_visium_arch ;;
+wasm32)                 targ_archs=bfd_wasm32_arch ;;
 x86_64*)        targ_archs=bfd_i386_arch ;;
 xtensa*)        targ_archs=bfd_xtensa_arch ;;
 xgate)          targ_archs=bfd_xgate_arch ;;
@@ -193,6 +260,11 @@
     targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
     want64=true
     ;;
+  aarch64-*-fuchsia*)
+    targ_defvec=aarch64_elf64_le_vec
+    targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
+    want64=true
+    ;;
   aarch64-*-cloudabi*)
     targ_defvec=aarch64_elf64_le_cloudabi_vec
     targ_selvecs=aarch64_elf64_be_cloudabi_vec
@@ -302,6 +374,10 @@
     targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
     targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
     ;;
+  arm-*-fuchsia*)
+    targ_defvec=arm_elf32_le_vec
+    targ_selvecs="arm_elf32_be_vec"
+    ;;
   arm-*-nacl*)
     targ_defvec=arm_elf32_nacl_le_vec
     targ_selvecs="arm_elf32_nacl_be_vec i386_elf32_nacl_vec"
@@ -369,10 +445,6 @@
     targ_defvec=arm_elf32_le_vec
     targ_selvecs=arm_elf32_be_vec
     ;;
-  arm-*-rtems*)
-    targ_defvec=arm_elf32_le_vec
-    targ_selvecs=arm_elf32_be_vec
-    ;;
   armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
     targ_defvec=arm_elf32_be_vec
     targ_selvecs=arm_elf32_le_vec
@@ -383,7 +455,7 @@
     ;;
   arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
   arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
-  arm*-*-eabi* )
+  arm*-*-eabi* | arm-*-rtems*)
     targ_defvec=arm_elf32_le_vec
     targ_selvecs=arm_elf32_be_vec
     ;;
@@ -417,7 +489,7 @@
     targ_defvec=tic30_coff_vec
     ;;
 
-  c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
+  c4x-*-*coff* | tic4x-*-*coff*)
     targ_defvec=tic4x_coff1_vec
     targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
     targ_underscore=yes
@@ -495,11 +567,6 @@
     targ_defvec=moxie_elf32_le_vec
     ;;
 
-  h8300*-*-rtemscoff*)
-    targ_defvec=h8300_coff_vec
-    targ_underscore=yes
-    ;;
-
   h8300*-*-elf | h8300*-*-rtems*)
     targ_defvec=h8300_elf32_vec
     targ_underscore=yes
@@ -569,7 +636,7 @@
     ;;
   i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
   i[3-7]86-*-elf* | i[3-7]86-*-sco3.2v5* | \
-  i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
+  i[3-7]86-*-dgux* | i[3-7]86-*-sysv5* | i[3-7]86-*-rtems*)
     targ_defvec=i386_elf32_vec
     targ_selvecs="iamcu_elf32_vec i386_coff_vec"
     ;;
@@ -615,10 +682,6 @@
   i[3-7]86-*-aix*)
     targ_defvec=i386_coff_vec
     ;;
-  i[3-7]86-*-rtems*)
-    targ_defvec=i386_elf32_vec
-    targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_aout_vec"
-    ;;
   i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
     targ_defvec=i386_mach_o_vec
     targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
@@ -693,6 +756,11 @@
     targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec"
     targ_archs="$targ_archs bfd_arm_arch"
     ;;
+  i[3-7]86-*-redox*)
+    targ_defvec=i386_elf32_vec
+    targ_selvecs=
+    targ64_selvecs=x86_64_elf64_vec
+    ;;
 #ifdef BFD64
   x86_64-*-cloudabi*)
     targ_defvec=x86_64_elf64_cloudabi_vec
@@ -709,7 +777,7 @@
     targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
     want64=true
     ;;
-  x86_64-*-elf* | x86_64-*-rtems*)
+  x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia)



Home | Main Index | Thread Index | Old Index