Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/usr.bin/gdb53 re-enable ppc-gdb "target sim" support.
details: https://anonhg.NetBSD.org/src/rev/eb691007bb60
branches: trunk
changeset: 565239:eb691007bb60
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Apr 02 13:36:32 2004 +0000
description:
re-enable ppc-gdb "target sim" support.
diffstat:
gnu/usr.bin/gdb53/Makefile | 5 ++++-
gnu/usr.bin/gdb53/arch/powerpc/defs.mk | 8 +++++---
gnu/usr.bin/gdb53/arch/powerpc/init.c | 2 ++
gnu/usr.bin/gdb53/gdb/Makefile | 12 ++++++------
4 files changed, 17 insertions(+), 10 deletions(-)
diffs (87 lines):
diff -r 098b41eb4a1f -r eb691007bb60 gnu/usr.bin/gdb53/Makefile
--- a/gnu/usr.bin/gdb53/Makefile Fri Apr 02 13:36:24 2004 +0000
+++ b/gnu/usr.bin/gdb53/Makefile Fri Apr 02 13:36:32 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2003/09/26 17:51:18 christos Exp $
+# $NetBSD: Makefile,v 1.3 2004/04/02 13:36:32 mrg Exp $
.include "Makefile.inc"
@@ -6,6 +6,9 @@
.if ${USE_LIBEDIT} == no || ${USE_TUI} == yes
SUBDIR+= readline
.endif
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpcle"
+SUBDIR+= sim .WAIT
+.endif
SUBDIR+= gdb # gdbreplay gdbserver
.include <bsd.subdir.mk>
diff -r 098b41eb4a1f -r eb691007bb60 gnu/usr.bin/gdb53/arch/powerpc/defs.mk
--- a/gnu/usr.bin/gdb53/arch/powerpc/defs.mk Fri Apr 02 13:36:24 2004 +0000
+++ b/gnu/usr.bin/gdb53/arch/powerpc/defs.mk Fri Apr 02 13:36:32 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: defs.mk,v 1.2 2003/11/10 21:48:48 matt Exp $
+# $NetBSD: defs.mk,v 1.3 2004/04/02 13:36:32 mrg Exp $
G_GDB_OBJS=\
annotate.o \
arch-utils.o \
@@ -145,9 +145,11 @@
values.o \
varobj.o \
version.o \
-wrapper.o
+wrapper.o \
+${G_SIM_OBS}
-G_SIM_OBJS=
+G_SIM_OBS = remote-sim.o
+
G_BFD_CPPFLAGS=\
-DDEFAULT_VECTOR=bfd_elf32_powerpc_vec \
diff -r 098b41eb4a1f -r eb691007bb60 gnu/usr.bin/gdb53/arch/powerpc/init.c
--- a/gnu/usr.bin/gdb53/arch/powerpc/init.c Fri Apr 02 13:36:24 2004 +0000
+++ b/gnu/usr.bin/gdb53/arch/powerpc/init.c Fri Apr 02 13:36:32 2004 +0000
@@ -41,6 +41,7 @@
extern initialize_file_ftype _initialize_sr_support;
extern initialize_file_ftype _initialize_tracepoint;
extern initialize_file_ftype _initialize_ax_gdb;
+extern initialize_file_ftype _initialize_remote_sim;
extern initialize_file_ftype _initialize_mem;
extern initialize_file_ftype _initialize_parse;
extern initialize_file_ftype _initialize_language;
@@ -128,6 +129,7 @@
_initialize_sr_support ();
_initialize_tracepoint ();
_initialize_ax_gdb ();
+ _initialize_remote_sim ();
_initialize_mem ();
_initialize_parse ();
_initialize_language ();
diff -r 098b41eb4a1f -r eb691007bb60 gnu/usr.bin/gdb53/gdb/Makefile
--- a/gnu/usr.bin/gdb53/gdb/Makefile Fri Apr 02 13:36:24 2004 +0000
+++ b/gnu/usr.bin/gdb53/gdb/Makefile Fri Apr 02 13:36:32 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2003/10/25 18:24:23 matt Exp $
+# $NetBSD: Makefile,v 1.7 2004/04/02 13:36:33 mrg Exp $
.include <bsd.own.mk>
@@ -66,11 +66,11 @@
.endif
## PSIM support for PowerPC.
-#.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle
-#PSIMOBJ!= cd ${TOP}/usr.bin/sim/ppc && ${PRINTOBJDIR}
-#LDADD+= -L${PSIMOBJ} -lsim
-#DPADD+= ${PSIMOBJ}/libsim.a
-#.endif
+.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle
+PSIMOBJ!= cd ${.CURDIR}/../sim/ppc && ${PRINTOBJDIR}
+LDADD+= -L${PSIMOBJ} -lsim
+DPADD+= ${PSIMOBJ}/libsim.a
+.endif
LDADD+= -L${LIBOPCODESDIR} -lopcodes\
-L${LIBBFDDIR} -lbfd \
Home |
Main Index |
Thread Index |
Old Index