This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Build sim/ppc when linux or netbsd
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] Build sim/ppc when linux or netbsd
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 19 Oct 2001 20:10:14 -0400
FYI,
I've committed the attached as obvious. It includes the PowerPC
simulator in a GNU/Linux/PPC and NetBSD/PPC native GDB. I don't know
why this wasn't done years ago :-)
Andrew
gdb/ChangeLog
2001-10-18 Andrew Cagney <ac131313@redhat.com>
* config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
* config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
sim/ChangeLog
2001-10-19 Andrew Cagney <ac131313@redhat.com>
* configure.in: When Linux or NetBSD, enable PowerPC simulator.
* configure: Re-generate.
Index: gdb/config/powerpc/linux.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/linux.mt,v
retrieving revision 1.3
diff -p -r1.3 linux.mt
*** linux.mt 2001/03/10 06:17:23 1.3
--- linux.mt 2001/10/20 00:03:37
***************
*** 1,3 ****
--- 1,6 ----
# Target: Motorola PPC on Linux
TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o solib.o solib-svr4.o solib-legacy.o
TM_FILE= tm-linux.h
+
+ SIM_OBS = remote-sim.o
+ SIM = ../sim/ppc/libsim.a
Index: gdb/config/powerpc/nbsd.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/nbsd.mt,v
retrieving revision 1.5
diff -p -r1.5 nbsd.mt
*** nbsd.mt 2001/01/22 20:23:22 1.5
--- nbsd.mt 2001/10/20 00:03:37
*************** TDEPFILES= rs6000-tdep.o ppc-linux-tdep.
*** 3,5 ****
--- 3,8 ----
TM_FILE= tm-nbsd.h
GDBSERVER_DEPFILES= low-nbsd.o
+
+ SIM_OBS = remote-sim.o
+ SIM = ../sim/ppc/libsim.a
Index: sim/configure.in
===================================================================
RCS file: /cvs/src/src/sim/configure.in,v
retrieving revision 1.5
diff -p -r1.5 configure.in
*** configure.in 2000/11/30 01:55:11 1.5
--- configure.in 2001/10/20 00:03:38
*************** case "${target}" in
*** 87,93 ****
sim_target=mn10200
;;
sh*-*-*) sim_target=sh ;;
! powerpc*-*-eabi* | powerpc*-*-solaris* | powerpc*-*-sysv4* | powerpc*-*-elf* | powerpc*-*-linux* )
# The PowerPC simulator uses the GCC extension long long as well as
# ANSI prototypes, so don't enable it for random host compilers
# unless asked to.
--- 87,94 ----
sim_target=mn10200
;;
sh*-*-*) sim_target=sh ;;
! powerpc*-*-eabi* | powerpc*-*-solaris* | powerpc*-*-sysv4* | \
! powerpc*-*-elf* | powerpc*-*-linux* | powerpc*-*-netbsd* )
# The PowerPC simulator uses the GCC extension long long as well as
# ANSI prototypes, so don't enable it for random host compilers
# unless asked to.