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 Report trapframe where possible
details: https://anonhg.NetBSD.org/src/rev/4298c9a5ddda
branches: trunk
changeset: 353237:4298c9a5ddda
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Apr 25 09:02:04 2017 +0000
description:
Report trapframe where possible
diffstat:
sys/arch/arm/arm/db_trace.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (44 lines):
diff -r 91a58a26fc64 -r 4298c9a5ddda sys/arch/arm/arm/db_trace.c
--- a/sys/arch/arm/arm/db_trace.c Tue Apr 25 09:01:38 2017 +0000
+++ b/sys/arch/arm/arm/db_trace.c Tue Apr 25 09:02:04 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.31 2015/01/24 15:44:32 skrll Exp $ */
+/* $NetBSD: db_trace.c,v 1.32 2017/04/25 09:02:04 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.31 2015/01/24 15:44:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.32 2017/04/25 09:02:04 skrll Exp $");
#include <sys/proc.h>
#include <arm/armreg.h>
@@ -86,6 +86,7 @@
db_expr_t count, const char *modif,
void (*pr)(const char *, ...))
{
+ struct trapframe *tf = NULL;
uint32_t *frame, *lastframe;
const char *cp = modif;
char c;
@@ -140,6 +141,7 @@
}
(*pr)("lid %d ", l.l_lid);
pcb = lwp_getpcb(&l);
+ tf = lwp_trapframe(&l);
#ifndef _KERNEL
struct pcb pcbb;
db_read_bytes((db_addr_t)pcb, sizeof(*pcb),
@@ -258,6 +260,9 @@
break;
}
} else if (INKERNEL((int)lastframe)) {
+ if (trace_thread) {
+ (*pr)("--- tf %p ---\n", tf);
+ }
/* switch from user to kernel */
if (kernel_only)
break; /* kernel stack only */
Home |
Main Index |
Thread Index |
Old Index