Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm Allow crash(8) to compile this.
details: https://anonhg.NetBSD.org/src/rev/21eb45a2ef3f
branches: trunk
changeset: 328214:21eb45a2ef3f
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Mar 29 15:47:40 2014 +0000
description:
Allow crash(8) to compile this.
diffstat:
sys/arch/arm/arm/db_trace.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r b4edfd4786e0 -r 21eb45a2ef3f sys/arch/arm/arm/db_trace.c
--- a/sys/arch/arm/arm/db_trace.c Sat Mar 29 15:02:00 2014 +0000
+++ b/sys/arch/arm/arm/db_trace.c Sat Mar 29 15:47:40 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.28 2013/01/18 07:34:39 skrll Exp $ */
+/* $NetBSD: db_trace.c,v 1.29 2014/03/29 15:47:40 skrll Exp $ */
/*
* Copyright (c) 2000, 2001 Ben Harris
@@ -31,7 +31,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.28 2013/01/18 07:34:39 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.29 2014/03/29 15:47:40 skrll Exp $");
#include <sys/proc.h>
#include <arm/armreg.h>
@@ -109,9 +109,12 @@
trace_full = true;
}
+#ifdef _KERNEL
if (!have_addr)
frame = (uint32_t *)(DDB_REGS->tf_r11);
- else {
+ else
+#endif
+ {
if (trace_thread) {
struct pcb *pcb;
proc_t p;
Home |
Main Index |
Thread Index |
Old Index