Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/m68k/m68k add ifdefs for kernel only variable
details: https://anonhg.NetBSD.org/src/rev/8b5319ed191d
branches: trunk
changeset: 791159:8b5319ed191d
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 07 01:49:46 2013 +0000
description:
add ifdefs for kernel only variable
diffstat:
sys/arch/m68k/m68k/db_trace.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 9afa636f0759 -r 8b5319ed191d sys/arch/m68k/m68k/db_trace.c
--- a/sys/arch/m68k/m68k/db_trace.c Thu Nov 07 01:47:59 2013 +0000
+++ b/sys/arch/m68k/m68k/db_trace.c Thu Nov 07 01:49:46 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.57 2012/01/31 21:17:57 mlelstv Exp $ */
+/* $NetBSD: db_trace.c,v 1.58 2013/11/07 01:49:46 christos Exp $ */
/*
* Mach Operating System
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.57 2012/01/31 21:17:57 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.58 2013/11/07 01:49:46 christos Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -393,7 +393,9 @@
const char * name;
struct stackpos pos;
struct pcb *pcb;
+#ifdef _KERNEL
bool kernel_only = true;
+#endif
bool trace_thread = false;
bool lwpaddr = false;
int fault_pc = 0;
@@ -408,8 +410,10 @@
trace_thread = true;
} else if (c == 't')
trace_thread = true;
+#ifdef _KERNEL
else if (c == 'u')
kernel_only = false;
+#endif
}
if (!have_addr)
Home |
Main Index |
Thread Index |
Old Index