Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/crash enable crash(8) for sparc64. it's still sort...



details:   https://anonhg.NetBSD.org/src/rev/eb87d8760786
branches:  trunk
changeset: 764240:eb87d8760786
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Apr 14 08:21:06 2011 +0000

description:
enable crash(8) for sparc64.  it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.

diffstat:

 usr.sbin/crash/Makefile |  29 ++++++++++++++++++++++-------
 1 files changed, 22 insertions(+), 7 deletions(-)

diffs (61 lines):

diff -r b75c2dec3e4c -r eb87d8760786 usr.sbin/crash/Makefile
--- a/usr.sbin/crash/Makefile   Thu Apr 14 08:17:42 2011 +0000
+++ b/usr.sbin/crash/Makefile   Thu Apr 14 08:21:06 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2011/04/12 01:47:20 mrg Exp $
+#      $NetBSD: Makefile,v 1.10 2011/04/14 08:21:06 mrg Exp $
 
 PROG=          crash
 MAN=           crash.8
@@ -9,10 +9,15 @@
 
 # some ddb kernel components need limited modifications.  for now,
 # punt if not noted as implemented here.
-.if    ${MACHINE} != "amd64" \
-    && ${MACHINE} != "i386"
-SRCS+= unsupported.c
+.if    ${MACHINE} == "amd64" \
+    || ${MACHINE} == "i386" \
+    || ${MACHINE} == "sparc64"
+REALCRASH=yes
 .else
+REALCRASH=no
+.endif
+
+.if ${REALCRASH} != "no"       # {
 
 S=             ${.CURDIR}/../../sys
 
@@ -28,11 +33,17 @@
 SRCS+= db_sym.c db_variables.c db_write_cmd.c
 
 .PATH: ${S}/arch/${MACHINE}/${MACHINE}
-SRCS+= db_machdep.c db_disasm.c
+SRCS+= db_disasm.c
 
-. if empty(${MACHINE:C/(amd64|i386)//})
+. if    ${MACHINE} == "amd64" \
+     || ${MACHINE} == "i386"
 .PATH: ${S}/arch/x86/x86
 SRCS+= db_trace.c
+SRCS+= db_machdep.c
+. endif
+
+. if ${MACHINE} == "sparc64"
+SRCS+= db_trace.c db_interface.c
 . endif
 
 # crash main source
@@ -52,7 +63,11 @@
        ${HOST_SH} ${S}/conf/newvers.sh -r
 CLEANFILES+=   vers.c version
 
-.endif
+.else                          # } {
+
+SRCS+= unsupported.c
+
+.endif                         # }
 
 .include <bsd.prog.mk>
 .include <bsd.klinks.mk>



Home | Main Index | Thread Index | Old Index