Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb fix glue for gdb-7.9.1
details: https://anonhg.NetBSD.org/src/rev/b3627f94c82f
branches: trunk
changeset: 810033:b3627f94c82f
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 16 09:51:58 2015 +0000
description:
fix glue for gdb-7.9.1
diffstat:
external/gpl3/gdb/Makefile.inc | 4 +-
external/gpl3/gdb/bin/gdbtui/tui-main.c | 1 -
external/gpl3/gdb/lib/libbfd/Makefile | 4 +-
external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd-in3.h | 343 +-
external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd.h | 343 +-
external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd_stdint.h | 2 +-
external/gpl3/gdb/lib/libbfd/arch/x86_64/bfdver.h | 6 +-
external/gpl3/gdb/lib/libbfd/arch/x86_64/config.h | 14 +-
external/gpl3/gdb/lib/libbfd/arch/x86_64/defs.mk | 12 +-
external/gpl3/gdb/lib/libbfd/arch/x86_64/targmatch.h | 1367 +++++----
external/gpl3/gdb/lib/libdecnumber/arch/x86_64/gstdint.h | 2 +-
external/gpl3/gdb/lib/libgdb/Makefile | 15 +-
external/gpl3/gdb/lib/libgdb/arch/x86_64/build-gnulib/config.h | 268 +-
external/gpl3/gdb/lib/libgdb/arch/x86_64/config.h | 29 +-
external/gpl3/gdb/lib/libgdb/arch/x86_64/defs.mk | 2 +-
external/gpl3/gdb/lib/libgdb/arch/x86_64/init.c | 14 +
external/gpl3/gdb/lib/libgdb/arch/x86_64/jit-reader.h | 2 +-
external/gpl3/gdb/lib/libgdb/arch/x86_64/observer.h | 82 +-
external/gpl3/gdb/lib/libgdb/arch/x86_64/observer.inc | 372 ++-
external/gpl3/gdb/lib/libgdb/arch/x86_64/version.c | 2 +-
external/gpl3/gdb/lib/libgdb/arch/x86_64/xml-builtin.c | 18 +-
external/gpl3/gdb/lib/libiberty/arch/x86_64/config.h | 31 +
external/gpl3/gdb/lib/libiberty/arch/x86_64/defs.mk | 2 +-
external/gpl3/gdb/lib/libopcodes/arch/x86_64/config.h | 15 +-
24 files changed, 1971 insertions(+), 979 deletions(-)
diffs (truncated from 6503 to 300 lines):
diff -r ccdb1686100f -r b3627f94c82f external/gpl3/gdb/Makefile.inc
--- a/external/gpl3/gdb/Makefile.inc Sun Aug 16 09:17:49 2015 +0000
+++ b/external/gpl3/gdb/Makefile.inc Sun Aug 16 09:51:58 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.8 2013/08/06 05:35:57 matt Exp $
+# $NetBSD: Makefile.inc,v 1.9 2015/08/16 09:51:58 christos Exp $
USE_LIBEDIT=no
USE_TUI=yes
@@ -13,4 +13,4 @@
-Wno-tautological-compare -Wno-format-extra-args \
-Wno-string-plus-int
-DIST= ${NETBSDSRCDIR}/external/gpl3/gdb/dist
+DIST:= ${.PARSEDIR}/dist
diff -r ccdb1686100f -r b3627f94c82f external/gpl3/gdb/bin/gdbtui/tui-main.c
--- a/external/gpl3/gdb/bin/gdbtui/tui-main.c Sun Aug 16 09:17:49 2015 +0000
+++ b/external/gpl3/gdb/bin/gdbtui/tui-main.c Sun Aug 16 09:51:58 2015 +0000
@@ -31,7 +31,6 @@
memset (&args, 0, sizeof args);
args.argc = argc;
args.argv = argv;
- args.use_windows = 0;
args.interpreter_p = INTERP_TUI;
return gdb_main (&args);
}
diff -r ccdb1686100f -r b3627f94c82f external/gpl3/gdb/lib/libbfd/Makefile
--- a/external/gpl3/gdb/lib/libbfd/Makefile Sun Aug 16 09:17:49 2015 +0000
+++ b/external/gpl3/gdb/lib/libbfd/Makefile Sun Aug 16 09:51:58 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2014/01/20 10:49:33 apb Exp $
+# $NetBSD: Makefile,v 1.6 2015/08/16 09:51:58 christos Exp $
.include <bsd.own.mk>
.include "../Makefile.inc"
@@ -12,7 +12,7 @@
GCPPFLAGS= ${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
CPPFLAGS+= -I${.CURDIR}/arch/${GDB_MACHINE_ARCH} -I${DIST}/include -I. \
-I${DIST}/bfd ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*} \
- -DDEBUGDIR=\"/usr/libdata/debug\"
+ -DDEBUGDIR=\"/usr/libdata/debug\" -DBINDIR=\"${BINDIR}\"
GSRCS= ${G_libbfd_la_OBJECTS:libbfd.lo=lib_bfd.lo} \
${G_libbfd_la_DEPENDENCIES:M*.lo}
diff -r ccdb1686100f -r b3627f94c82f external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd-in3.h
--- a/external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd-in3.h Sun Aug 16 09:17:49 2015 +0000
+++ b/external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd-in3.h Sun Aug 16 09:51:58 2015 +0000
@@ -11,7 +11,7 @@
/* Main header file for the bfd library -- portable access to object files.
- Copyright 1990-2013 Free Software Foundation, Inc.
+ Copyright (C) 1990-2015 Free Software Foundation, Inc.
Contributed by Cygnus Support.
@@ -82,7 +82,7 @@
#define LITSTRCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2))
-#define BFD_SUPPORTS_PLUGINS 0
+#define BFD_SUPPORTS_PLUGINS 1
/* The word size used by BFD on the host. This may be 64 with a 32
bit target if the host is 64 bit, or if other 64 bit targets have
@@ -669,7 +669,7 @@
(bfd *);
extern struct bfd_link_needed_list *bfd_elf_get_runpath_list
(bfd *, struct bfd_link_info *);
-extern bfd_boolean bfd_elf_discard_info
+extern int bfd_elf_discard_info
(bfd *, struct bfd_link_info *);
extern unsigned int _bfd_elf_default_action_discarded
(struct bfd_section *);
@@ -691,19 +691,21 @@
(bfd *abfd, void *phdrs);
/* Create a new BFD as if by bfd_openr. Rather than opening a file,
- reconstruct an ELF file by reading the segments out of remote memory
- based on the ELF file header at EHDR_VMA and the ELF program headers it
- points to. If not null, *LOADBASEP is filled in with the difference
- between the VMAs from which the segments were read, and the VMAs the
- file headers (and hence BFD's idea of each section's VMA) put them at.
-
- The function TARGET_READ_MEMORY is called to copy LEN bytes from the
- remote memory at target address VMA into the local buffer at MYADDR; it
- should return zero on success or an `errno' code on failure. TEMPL must
- be a BFD for an ELF target with the word size and byte order found in
- the remote memory. */
+ reconstruct an ELF file by reading the segments out of remote
+ memory based on the ELF file header at EHDR_VMA and the ELF program
+ headers it points to. If non-zero, SIZE is the known extent of the
+ object. If not null, *LOADBASEP is filled in with the difference
+ between the VMAs from which the segments were read, and the VMAs
+ the file headers (and hence BFD's idea of each section's VMA) put
+ them at.
+
+ The function TARGET_READ_MEMORY is called to copy LEN bytes from
+ the remote memory at target address VMA into the local buffer at
+ MYADDR; it should return zero on success or an `errno' code on
+ failure. TEMPL must be a BFD for a target with the word size and
+ byte order found in the remote memory. */
extern bfd *bfd_elf_bfd_from_remote_memory
- (bfd *templ, bfd_vma ehdr_vma, bfd_vma *loadbasep,
+ (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep,
int (*target_read_memory) (bfd_vma vma, bfd_byte *myaddr,
bfd_size_type len));
@@ -815,12 +817,6 @@
union internal_auxent;
#endif
-extern bfd_boolean bfd_coff_get_syment
- (bfd *, struct bfd_symbol *, struct internal_syment *);
-
-extern bfd_boolean bfd_coff_get_auxent
- (bfd *, struct bfd_symbol *, int, union internal_auxent *);
-
extern bfd_boolean bfd_coff_set_symbol_class
(bfd *, struct bfd_symbol *, unsigned int);
@@ -888,15 +884,19 @@
extern bfd_boolean bfd_elf32_arm_add_glue_sections_to_bfd
(bfd *, struct bfd_link_info *);
-/* ELF ARM mapping symbol support */
+/* ELF ARM mapping symbol support. */
#define BFD_ARM_SPECIAL_SYM_TYPE_MAP (1 << 0)
#define BFD_ARM_SPECIAL_SYM_TYPE_TAG (1 << 1)
#define BFD_ARM_SPECIAL_SYM_TYPE_OTHER (1 << 2)
#define BFD_ARM_SPECIAL_SYM_TYPE_ANY (~0)
+
extern bfd_boolean bfd_is_arm_special_symbol_name
- (const char * name, int type);
-
-extern void bfd_elf32_arm_set_byteswap_code (struct bfd_link_info *, int);
+ (const char *, int);
+
+extern void bfd_elf32_arm_set_byteswap_code
+ (struct bfd_link_info *, int);
+
+extern void bfd_elf32_arm_use_long_plt (void);
/* ARM Note section processing. */
extern bfd_boolean bfd_arm_merge_machines
@@ -942,10 +942,10 @@
(bfd *);
extern void bfd_elf64_aarch64_set_options
- (bfd *, struct bfd_link_info *, int, int, int);
+ (bfd *, struct bfd_link_info *, int, int, int, int);
extern void bfd_elf32_aarch64_set_options
- (bfd *, struct bfd_link_info *, int, int, int);
+ (bfd *, struct bfd_link_info *, int, int, int, int);
/* ELF AArch64 mapping symbol support. */
#define BFD_AARCH64_SPECIAL_SYM_TYPE_MAP (1 << 0)
@@ -996,30 +996,11 @@
extern void bfd_elf64_ia64_after_parse
(int);
-
-/* This structure is used for a comdat section, as in PE. A comdat
- section is associated with a particular symbol. When the linker
- sees a comdat section, it keeps only one of the sections with a
- given name and associated with a given symbol. */
-
-struct coff_comdat_info
-{
- /* The name of the symbol associated with a comdat section. */
- const char *name;
-
- /* The local symbol table index of the symbol associated with a
- comdat section. This is only meaningful to the object file format
- specific code; it is not an index into the list returned by
- bfd_canonicalize_symtab. */
- long symbol;
-};
-
-extern struct coff_comdat_info * bfd_coff_get_comdat_section
- (bfd *, struct bfd_section *);
/* Extracted from init.c. */
void bfd_init (void);
/* Extracted from opncls.c. */
+/* Set to N to open the next N BFDs using an alternate id space. */
extern unsigned int bfd_use_reserved_id;
bfd *bfd_fopen (const char *filename, const char *target,
const char *mode, int fd);
@@ -1204,6 +1185,7 @@
/* Extracted from bfdwin.c. */
/* Extracted from section.c. */
+
typedef struct bfd_section
{
/* The name of the section; the name isn't a copy, the pointer is
@@ -1441,6 +1423,7 @@
#define SEC_INFO_TYPE_MERGE 2
#define SEC_INFO_TYPE_EH_FRAME 3
#define SEC_INFO_TYPE_JUST_SYMS 4
+#define SEC_INFO_TYPE_TARGET 5
/* Nonzero if this section uses RELA relocations, rather than REL. */
unsigned int use_rela_p:1;
@@ -1903,7 +1886,9 @@
#define bfd_mach_i960_jx 7
#define bfd_mach_i960_hx 8
- bfd_arch_or32, /* OpenRISC 32 */
+ bfd_arch_or1k, /* OpenRISC 1000 */
+#define bfd_mach_or1k 1
+#define bfd_mach_or1knd 2
bfd_arch_sparc, /* SPARC */
#define bfd_mach_sparc 1
@@ -1959,11 +1944,18 @@
#define bfd_mach_mips_octeon 6501
#define bfd_mach_mips_octeonp 6601
#define bfd_mach_mips_octeon2 6502
+#define bfd_mach_mips_octeon3 6503
#define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */
#define bfd_mach_mipsisa32 32
#define bfd_mach_mipsisa32r2 33
+#define bfd_mach_mipsisa32r3 34
+#define bfd_mach_mipsisa32r5 36
+#define bfd_mach_mipsisa32r6 37
#define bfd_mach_mipsisa64 64
#define bfd_mach_mipsisa64r2 65
+#define bfd_mach_mipsisa64r3 66
+#define bfd_mach_mipsisa64r5 68
+#define bfd_mach_mipsisa64r6 69
#define bfd_mach_mips_micromips 96
bfd_arch_i386, /* Intel 386 */
#define bfd_mach_i386_intel_syntax (1 << 0)
@@ -2186,6 +2178,7 @@
#define bfd_mach_avr5 5
#define bfd_mach_avr51 51
#define bfd_mach_avr6 6
+#define bfd_mach_avrtiny 100
#define bfd_mach_avrxmega1 101
#define bfd_mach_avrxmega2 102
#define bfd_mach_avrxmega3 103
@@ -2215,7 +2208,6 @@
bfd_arch_score, /* Sunplus score */
#define bfd_mach_score3 3
#define bfd_mach_score7 7
- bfd_arch_openrisc, /* OpenRISC */
bfd_arch_mmix, /* Donald Knuth's educational processor. */
bfd_arch_xstormy16,
#define bfd_mach_xstormy16 1
@@ -2270,6 +2262,8 @@
#define bfd_mach_aarch64_ilp32 32
bfd_arch_nios2,
#define bfd_mach_nios2 0
+ bfd_arch_visium, /* Visium */
+#define bfd_mach_visium 1
bfd_arch_last
};
@@ -2335,6 +2329,7 @@
(enum bfd_architecture arch, unsigned long machine);
/* Extracted from reloc.c. */
+
typedef enum bfd_reloc_status
{
/* No errors detected. */
@@ -2384,6 +2379,7 @@
}
arelent;
+
enum complain_overflow
{
/* Do not complain on overflow. */
@@ -2402,6 +2398,7 @@
unsigned number. */
complain_overflow_unsigned
};
+struct bfd_symbol; /* Forward declaration. */
struct reloc_howto_struct
{
@@ -2929,6 +2926,12 @@
BFD_RELOC_MICROMIPS_10_PCREL_S1,
BFD_RELOC_MICROMIPS_16_PCREL_S1,
+/* MIPS PC-relative relocations. */
+ BFD_RELOC_MIPS_21_PCREL_S2,
+ BFD_RELOC_MIPS_26_PCREL_S2,
+ BFD_RELOC_MIPS_18_PCREL_S3,
+ BFD_RELOC_MIPS_19_PCREL_S2,
+
/* microMIPS versions of generic BFD relocs. */
BFD_RELOC_MICROMIPS_GPREL16,
BFD_RELOC_MICROMIPS_HI16,
@@ -3258,6 +3261,7 @@
BFD_RELOC_PPC64_PLTGOT16_LO_DS,
Home |
Main Index |
Thread Index |
Old Index