Segregate MD weirdness a little bit more. Improve cross buildability.
This commit is contained in:
parent
355a488d44
commit
3ce5798474
@ -4,10 +4,6 @@
|
|||||||
|
|
||||||
.PATH: ${SRCDIR}/binutils
|
.PATH: ${SRCDIR}/binutils
|
||||||
|
|
||||||
.if ${MACHINE_ARCH} == "i386"
|
|
||||||
CFLAGS+= -Dprint_insn_i386=print_insn_i386_att
|
|
||||||
.endif
|
|
||||||
|
|
||||||
PROG= gdb
|
PROG= gdb
|
||||||
XSRCS= annotate.c ax-general.c ax-gdb.c bcache.c blockframe.c \
|
XSRCS= annotate.c ax-general.c ax-gdb.c bcache.c blockframe.c \
|
||||||
breakpoint.c buildsym.c c-exp.y c-lang.c c-typeprint.c \
|
breakpoint.c buildsym.c c-exp.y c-lang.c c-typeprint.c \
|
||||||
@ -29,13 +25,14 @@ XSRCS= annotate.c ax-general.c ax-gdb.c bcache.c blockframe.c \
|
|||||||
SRCS= init.c ${XSRCS}
|
SRCS= init.c ${XSRCS}
|
||||||
SRCS+= wait.h
|
SRCS+= wait.h
|
||||||
|
|
||||||
.if exists(${.CURDIR}/Makefile.${MACHINE_ARCH})
|
.if exists(${.CURDIR}/Makefile.${TARGET_ARCH})
|
||||||
.include "${.CURDIR}/Makefile.${MACHINE_ARCH}"
|
.include "${.CURDIR}/Makefile.${TARGET_ARCH}"
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
WARNS= 0
|
.if ${TARGET_ARCH} != ${MACHINE_ARCH}
|
||||||
#CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
CFLAGS+= -DCROSS_COMPILE=1
|
||||||
CFLAGS+= -I${.CURDIR}/${MACHINE_ARCH}
|
.endif
|
||||||
|
CFLAGS+= -I${.CURDIR}/${TARGET_ARCH}
|
||||||
CFLAGS+= -I${SRCDIR}/binutils
|
CFLAGS+= -I${SRCDIR}/binutils
|
||||||
CFLAGS+= -I${SRCDIR}/bfd
|
CFLAGS+= -I${SRCDIR}/bfd
|
||||||
CFLAGS+= -I${GDBDIR}/gdb
|
CFLAGS+= -I${GDBDIR}/gdb
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
#
|
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
|
||||||
|
|
||||||
XSRCS+= freebsd-nat.c alpha-tdep.c kvm-fbsd.c
|
.PATH: ${.CURDIR}/alpha
|
||||||
|
|
||||||
|
.if ${TARGET_ARCH} == ${MACHINE_ARCH}
|
||||||
|
XSRCS+= freebsd-nat.c
|
||||||
|
.else
|
||||||
|
XSRCS+= freebsd-nat-stubs.c
|
||||||
|
.endif
|
||||||
|
XSRCS+= alpha-tdep.c kvm-fbsd.c
|
||||||
LDADD+= -lkvm
|
LDADD+= -lkvm
|
||||||
|
|
||||||
findvar%UAfix.c: findvar.c
|
findvar%UAfix.c: findvar.c
|
||||||
sed -e \
|
sed -e \
|
||||||
's,char registers[REGISTER_BYTES + /* SLOP */ 256];,char registers[REGISTER_BYTES + /* SLOP */ 256] __attribute__ ((aligned (8)));,g' \
|
's,char registers[REGISTER_BYTES + /* SLOP */ 256];,char registers[REGISTER_BYTES + /* SLOP */ 256] __attribute__ ((aligned (8)));,g' \
|
||||||
${.ALLSRC} >${.TARGET}
|
${.ALLSRC} >${.TARGET}
|
||||||
|
|
||||||
.PATH: ${.CURDIR}/alpha
|
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
XSRCS+= freebsd-nat.c i386-tdep.c i387-tdep.c kvm-fbsd.c
|
.PATH: ${.CURDIR}/i386
|
||||||
|
|
||||||
|
XSRCS+= freebsd-nat.c i386-tdep.c i387-tdep.c kvm-fbsd.c
|
||||||
|
|
||||||
|
CFLAGS+= -Dprint_insn_i386=print_insn_i386_att
|
||||||
|
|
||||||
findvar%UAfix.c: findvar.c
|
findvar%UAfix.c: findvar.c
|
||||||
ln -sf ${.ALLSRC} ${.TARGET}
|
ln -sf ${.ALLSRC} ${.TARGET}
|
||||||
|
|
||||||
.PATH: ${.CURDIR}/i386
|
|
||||||
|
@ -57,11 +57,10 @@ extern CORE_ADDR alpha_u_regs_offset();
|
|||||||
/* Support for shared libraries. */
|
/* Support for shared libraries. */
|
||||||
|
|
||||||
#include "solib.h"
|
#include "solib.h"
|
||||||
|
#include "elf/common.h"
|
||||||
|
|
||||||
#ifdef __ELF__
|
|
||||||
#define SVR4_SHARED_LIBS
|
#define SVR4_SHARED_LIBS
|
||||||
#define TARGET_ELF64
|
#define TARGET_ELF64
|
||||||
#endif
|
|
||||||
|
|
||||||
/* This is a lie. It's actually in stdio.h. */
|
/* This is a lie. It's actually in stdio.h. */
|
||||||
|
|
||||||
|
@ -27,6 +27,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
#define S0_REGNUM (T7_REGNUM+1)
|
#define S0_REGNUM (T7_REGNUM+1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef VM_MIN_ADDRESS
|
||||||
|
#define VM_MIN_ADDRESS (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Number of traps that happen between exec'ing the shell to run an
|
/* Number of traps that happen between exec'ing the shell to run an
|
||||||
inferior, and when we finally get to the inferior code. This is 2
|
inferior, and when we finally get to the inferior code. This is 2
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
/* config.h. Generated automatically by configure. */
|
/* config.h. Generated automatically by configure. */
|
||||||
/* config.in. Generated automatically from configure.in by autoheader. */
|
/* config.in. Generated automatically from configure.in by autoheader. */
|
||||||
|
|
||||||
@ -319,7 +321,9 @@
|
|||||||
/* #undef HAVE_PRRUN_T */
|
/* #undef HAVE_PRRUN_T */
|
||||||
|
|
||||||
/* Define if <sys/procfs.h> has gregset_t. */
|
/* Define if <sys/procfs.h> has gregset_t. */
|
||||||
|
#ifndef CROSS_COMPILE
|
||||||
#define HAVE_GREGSET_T 1
|
#define HAVE_GREGSET_T 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define if <sys/procfs.h> has fpregset_t. */
|
/* Define if <sys/procfs.h> has fpregset_t. */
|
||||||
#define HAVE_FPREGSET_T 1
|
#define HAVE_FPREGSET_T 1
|
||||||
|
Loading…
Reference in New Issue
Block a user