Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun3/include Don't enable DB_MACHINE_COMMANDS on cr...



details:   https://anonhg.NetBSD.org/src/rev/d33ee347b63a
branches:  trunk
changeset: 773453:d33ee347b63a
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Feb 02 16:06:48 2012 +0000

description:
Don't enable DB_MACHINE_COMMANDS on crash(8) (i.e. !defined(_KERNEL) case).
No easy way to switch sun3 and sun3x at run time for now.

Briefly tested by "build.sh -U -m sun3 build".

diffstat:

 sys/arch/sun3/include/db_machdep.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r ce4939d6f586 -r d33ee347b63a sys/arch/sun3/include/db_machdep.h
--- a/sys/arch/sun3/include/db_machdep.h        Thu Feb 02 16:02:44 2012 +0000
+++ b/sys/arch/sun3/include/db_machdep.h        Thu Feb 02 16:06:48 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_machdep.h,v 1.17 2005/12/11 12:19:21 christos Exp $ */
+/*     $NetBSD: db_machdep.h,v 1.18 2012/02/02 16:06:48 tsutsui Exp $  */
 
 /*
  * Mach Operating System
@@ -38,7 +38,10 @@
 #define DB_ELFSIZE 32
 
 /* This enables some code in db_command.c */
+/* XXX: disable db_machdep.c for crash(8) */
+#if defined(_KERNEL)
 #define DB_MACHINE_COMMANDS
+#endif
 
 extern char    *esym;  /* end of symbols */
 



Home | Main Index | Thread Index | Old Index