From 688c5db1493cd572179f79d3d36fba7d20547d7e Mon Sep 17 00:00:00 2001 From: skrll Date: Wed, 17 Apr 2013 08:15:19 +0000 Subject: [PATCH] Re-run mknative for earm. It helps if GDB can read ELF binaries. --- external/gpl3/gdb/lib/libbfd/arch/earm/bfd_stdint.h | 2 +- external/gpl3/gdb/lib/libbfd/arch/earm/config.h | 2 +- external/gpl3/gdb/lib/libdecnumber/arch/earm/gstdint.h | 2 +- external/gpl3/gdb/lib/libgdb/arch/earm/config.h | 8 ++++---- external/gpl3/gdb/lib/libgdb/arch/earm/defs.mk | 2 +- external/gpl3/gdb/lib/libgdb/arch/earm/init.c | 2 ++ 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/external/gpl3/gdb/lib/libbfd/arch/earm/bfd_stdint.h b/external/gpl3/gdb/lib/libbfd/arch/earm/bfd_stdint.h index 0a2e41b9a166..e1ce55bc1851 100644 --- a/external/gpl3/gdb/lib/libbfd/arch/earm/bfd_stdint.h +++ b/external/gpl3/gdb/lib/libbfd/arch/earm/bfd_stdint.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-gdb,v 1.5 2011/11/06 19:46:12 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -/* generated for arm--netbsdelf-eabi-gcc (NetBSD nb2 20111202) 4.5.3 */ +/* generated for arm--netbsdelf-eabi-gcc (NetBSD nb1 20120916) 4.5.4 */ #ifndef GCC_GENERATED_STDINT_H #define GCC_GENERATED_STDINT_H 1 diff --git a/external/gpl3/gdb/lib/libbfd/arch/earm/config.h b/external/gpl3/gdb/lib/libbfd/arch/earm/config.h index b04cce49ab9a..bf2f231c5fbc 100644 --- a/external/gpl3/gdb/lib/libbfd/arch/earm/config.h +++ b/external/gpl3/gdb/lib/libbfd/arch/earm/config.h @@ -239,7 +239,7 @@ /* #undef HAVE_WIN32_PSTATUS_T */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Define to the sub-directory in which libtool stores uninstalled libraries. */ diff --git a/external/gpl3/gdb/lib/libdecnumber/arch/earm/gstdint.h b/external/gpl3/gdb/lib/libdecnumber/arch/earm/gstdint.h index 0a2e41b9a166..e1ce55bc1851 100644 --- a/external/gpl3/gdb/lib/libdecnumber/arch/earm/gstdint.h +++ b/external/gpl3/gdb/lib/libdecnumber/arch/earm/gstdint.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-gdb,v 1.5 2011/11/06 19:46:12 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -/* generated for arm--netbsdelf-eabi-gcc (NetBSD nb2 20111202) 4.5.3 */ +/* generated for arm--netbsdelf-eabi-gcc (NetBSD nb1 20120916) 4.5.4 */ #ifndef GCC_GENERATED_STDINT_H #define GCC_GENERATED_STDINT_H 1 diff --git a/external/gpl3/gdb/lib/libgdb/arch/earm/config.h b/external/gpl3/gdb/lib/libgdb/arch/earm/config.h index ecf8057ad879..56a1eb81f08c 100644 --- a/external/gpl3/gdb/lib/libgdb/arch/earm/config.h +++ b/external/gpl3/gdb/lib/libgdb/arch/earm/config.h @@ -164,7 +164,7 @@ #define HAVE_DIRENT_H 1 /* Define if ELF support should be included. */ -/* #undef HAVE_ELF */ +#define HAVE_ELF 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_ELF_HP_H */ @@ -260,7 +260,7 @@ #define HAVE_LONG_DOUBLE 1 /* Define to 1 if the system has the type `long long int'. */ -/* #undef HAVE_LONG_LONG_INT */ +#define HAVE_LONG_LONG_INT 1 /* Define if has lwpid_t. */ /* #undef HAVE_LWPID_T */ @@ -674,7 +674,7 @@ #define HAVE_UNISTD_H 1 /* Define to 1 if the system has the type `unsigned long long int'. */ -/* #undef HAVE_UNSIGNED_LONG_LONG_INT */ +#define HAVE_UNSIGNED_LONG_LONG_INT 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 @@ -713,7 +713,7 @@ /* #undef HAVE_XML_STOPPARSER */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Define to 1 if your system has the _etext variable. */ #define HAVE__ETEXT 1 diff --git a/external/gpl3/gdb/lib/libgdb/arch/earm/defs.mk b/external/gpl3/gdb/lib/libgdb/arch/earm/defs.mk index da20814a5c6b..62ebea63ed60 100644 --- a/external/gpl3/gdb/lib/libgdb/arch/earm/defs.mk +++ b/external/gpl3/gdb/lib/libgdb/arch/earm/defs.mk @@ -3,5 +3,5 @@ # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # G_INTERNAL_CFLAGS= -I. -I${GNUHOSTDIST}/gdb -I${GNUHOSTDIST}/gdb/common -I${GNUHOSTDIST}/gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I${GNUHOSTDIST}/gdb/../include/opcode -I${GNUHOSTDIST}/gdb/../opcodes/.. -I${GNUHOSTDIST}/gdb/../readline/.. -I../bfd -I${GNUHOSTDIST}/gdb/../bfd -I${GNUHOSTDIST}/gdb/../include -I../libdecnumber -I${GNUHOSTDIST}/gdb/../libdecnumber -I./../intl -I${GNUHOSTDIST}/gdb/gnulib -Ignulib -DMI_OUT=1 -DTUI=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -G_LIBGDB_OBS=arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o fork-child.o inf-ptrace.o corelow.o nbsd-nat.o armnbsd-nat.o bsd-kvm.o nbsd-thread.o remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o cli-dump.o cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-logging.o cli-interp.o cli-utils.o mi-out.o mi-console.o mi-cmds.o mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o mi-interp.o mi-main.o mi-parse.o mi-getopt.o tui-command.o tui-data.o tui-disasm.o tui-file.o tui.o tui-hooks.o tui-interp.o tui-io.o tui-layout.o tui-out.o tui-main.o tui-regs.o tui-source.o tui-stack.o tui-win.o tui-windata.o tui-wingeneral.o tui-winsource.o tui.o python.o py-value.o py-prettyprint.o py-auto-load.o posix-hdep.o c-exp.o cp-name-parser.o objc-exp.o ada-exp.o jv-exp.o f-exp.o m2-exp.o p-exp.o version.o annotate.o addrmap.o auxv.o bfd-target.o blockframe.o breakpoint.o findvar.o regcache.o charset.o disasm.o dummy-frame.o dfp.o source.o value.o eval.o valops.o valarith.o valprint.o printcmd.o block.o symtab.o psymtab.o symfile.o symmisc.o linespec.o dictionary.o infcall.o infcmd.o infrun.o expprint.o environ.o stack.o thread.o exceptions.o filesystem.o inf-child.o interps.o main.o macrotab.o macrocmd.o macroexp.o macroscope.o mi-common.o event-loop.o event-top.o inf-loop.o completer.o gdbarch.o arch-utils.o gdbtypes.o osabi.o copying.o memattr.o mem-break.o target.o parse.o language.o buildsym.o findcmd.o std-regs.o signals.o exec.o reverse.o bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o dbxread.o coffread.o coff-pe-read.o dwarf2read.o mipsread.o stabsread.o corefile.o dwarf2expr.o dwarf2loc.o dwarf2-frame.o ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o ada-tasks.o ui-out.o cli-out.o varobj.o vec.o wrapper.o jv-lang.o jv-valprint.o jv-typeprint.o m2-lang.o opencl-lang.o p-lang.o p-typeprint.o p-valprint.o sentinel-frame.o complaints.o typeprint.o ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o ada-valprint.o c-valprint.o cp-valprint.o d-valprint.o f-valprint.o m2-valprint.o serial.o mdebugread.o top.o utils.o ui-file.o user-regs.o frame.o frame-unwind.o doublest.o frame-base.o inline-frame.o gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o cp-namespace.o reggroups.o regset.o trad-frame.o tramp-frame.o solib.o solib-target.o prologue-value.o memory-map.o memrange.o xml-support.o xml-syscall.o target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o inferior.o osdata.o gdb_usleep.o record.o gcore.o jit.o progspace.o inflow.o init.o +G_LIBGDB_OBS=arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o fork-child.o inf-ptrace.o corelow.o nbsd-nat.o armnbsd-nat.o bsd-kvm.o nbsd-thread.o remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o cli-dump.o cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-logging.o cli-interp.o cli-utils.o mi-out.o mi-console.o mi-cmds.o mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o mi-interp.o mi-main.o mi-parse.o mi-getopt.o tui-command.o tui-data.o tui-disasm.o tui-file.o tui.o tui-hooks.o tui-interp.o tui-io.o tui-layout.o tui-out.o tui-main.o tui-regs.o tui-source.o tui-stack.o tui-win.o tui-windata.o tui-wingeneral.o tui-winsource.o tui.o python.o py-value.o py-prettyprint.o py-auto-load.o elfread.o posix-hdep.o c-exp.o cp-name-parser.o objc-exp.o ada-exp.o jv-exp.o f-exp.o m2-exp.o p-exp.o version.o annotate.o addrmap.o auxv.o bfd-target.o blockframe.o breakpoint.o findvar.o regcache.o charset.o disasm.o dummy-frame.o dfp.o source.o value.o eval.o valops.o valarith.o valprint.o printcmd.o block.o symtab.o psymtab.o symfile.o symmisc.o linespec.o dictionary.o infcall.o infcmd.o infrun.o expprint.o environ.o stack.o thread.o exceptions.o filesystem.o inf-child.o interps.o main.o macrotab.o macrocmd.o macroexp.o macroscope.o mi-common.o event-loop.o event-top.o inf-loop.o completer.o gdbarch.o arch-utils.o gdbtypes.o osabi.o copying.o memattr.o mem-break.o target.o parse.o language.o buildsym.o findcmd.o std-regs.o signals.o exec.o reverse.o bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o dbxread.o coffread.o coff-pe-read.o dwarf2read.o mipsread.o stabsread.o corefile.o dwarf2expr.o dwarf2loc.o dwarf2-frame.o ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o ada-tasks.o ui-out.o cli-out.o varobj.o vec.o wrapper.o jv-lang.o jv-valprint.o jv-typeprint.o m2-lang.o opencl-lang.o p-lang.o p-typeprint.o p-valprint.o sentinel-frame.o complaints.o typeprint.o ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o ada-valprint.o c-valprint.o cp-valprint.o d-valprint.o f-valprint.o m2-valprint.o serial.o mdebugread.o top.o utils.o ui-file.o user-regs.o frame.o frame-unwind.o doublest.o frame-base.o inline-frame.o gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o cp-namespace.o reggroups.o regset.o trad-frame.o tramp-frame.o solib.o solib-target.o prologue-value.o memory-map.o memrange.o xml-support.o xml-syscall.o target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o inferior.o osdata.o gdb_usleep.o record.o gcore.o jit.o progspace.o inflow.o init.o G_SIM_OBS= diff --git a/external/gpl3/gdb/lib/libgdb/arch/earm/init.c b/external/gpl3/gdb/lib/libgdb/arch/earm/init.c index fc20b0404963..65e8157a56b0 100644 --- a/external/gpl3/gdb/lib/libgdb/arch/earm/init.c +++ b/external/gpl3/gdb/lib/libgdb/arch/earm/init.c @@ -22,6 +22,7 @@ extern initialize_file_ftype _initialize_remote; extern initialize_file_ftype _initialize_dcache; extern initialize_file_ftype _initialize_tracepoint; extern initialize_file_ftype _initialize_ax_gdb; +extern initialize_file_ftype _initialize_elfread; extern initialize_file_ftype _initialize_ada_exp; extern initialize_file_ftype _initialize_annotate; extern initialize_file_ftype _initialize_addrmap; @@ -145,6 +146,7 @@ initialize_all_files (void) _initialize_dcache (); _initialize_tracepoint (); _initialize_ax_gdb (); + _initialize_elfread (); _initialize_ada_exp (); _initialize_annotate (); _initialize_addrmap ();