Module Name: src
Committed By: chs
Date: Wed Feb 22 14:12:04 UTC 2012
Modified Files:
src/sys/arch/amd64/amd64: db_machdep.c
Log Message:
fix stack backtraces through traps.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amd64/amd64/db_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/amd64/db_machdep.c
diff -u src/sys/arch/amd64/amd64/db_machdep.c:1.1 src/sys/arch/amd64/amd64/db_machdep.c:1.2
--- src/sys/arch/amd64/amd64/db_machdep.c:1.1 Sun Apr 10 20:36:49 2011
+++ src/sys/arch/amd64/amd64/db_machdep.c Wed Feb 22 14:12:04 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.c,v 1.1 2011/04/10 20:36:49 christos Exp $ */
+/* $NetBSD: db_machdep.c,v 1.2 2012/02/22 14:12:04 chs Exp $ */
/*
* Mach Operating System
@@ -26,7 +26,7 @@
* rights to redistribute these changes.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.1 2011/04/10 20:36:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.2 2012/02/22 14:12:04 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -131,7 +131,7 @@ db_nextframe(long **nextframe, long **re
default:
/* The only argument to trap() or syscall() is the trapframe. */
- tf = *(struct trapframe **)argp;
+ tf = (struct trapframe *)argp;
switch (is_trap) {
case TRAP:
(*pr)("--- trap (number %d) ---\n", tf->tf_trapno);
@@ -141,7 +141,6 @@ db_nextframe(long **nextframe, long **re
break;
case INTERRUPT:
(*pr)("--- interrupt ---\n");
- tf = (struct trapframe *)argp;
break;
}
*ip = (db_addr_t)tf->tf_rip;