diff options
author | 2000-10-11 06:13:40 +0000 | |
---|---|---|
committer | 2000-10-11 06:13:40 +0000 | |
commit | cf103e3fdb467980f1eebea0f3025f05cc422216 (patch) | |
tree | ee52c263ec12963b0704a9f46efb9eeff8b56fa0 | |
parent | add asc* (diff) | |
download | wireguard-openbsd-cf103e3fdb467980f1eebea0f3025f05cc422216.tar.xz wireguard-openbsd-cf103e3fdb467980f1eebea0f3025f05cc422216.zip |
fix argument printing in stack trace
-rw-r--r-- | sys/arch/vax/vax/db_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/vax/db_machdep.c b/sys/arch/vax/vax/db_machdep.c index 7b1b6e170cd..0cc060a6f2e 100644 --- a/sys/arch/vax/vax/db_machdep.c +++ b/sys/arch/vax/vax/db_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.c,v 1.8 2000/04/27 01:10:11 bjc Exp $ */ +/* $OpenBSD: db_machdep.c,v 1.9 2000/10/11 06:13:40 bjc Exp $ */ /* $NetBSD: db_machdep.c,v 1.17 1999/06/20 00:58:23 ragge Exp $ */ /* @@ -293,7 +293,7 @@ db_dump_stack(VAX_CALLFRAME *fp, u_int stackbase) { db_printf("0x%x,", tmp_frame->vax_args[arg_base++]); /* now print out the last arg with closing brace and \n */ - db_printf("0x%x)\n", tmp_frame->vax_args[++arg_base]); + db_printf("0x%x)\n", tmp_frame->vax_args[arg_base]); } else db_printf("void)\n"); /* move to the next frame */ @@ -339,7 +339,7 @@ db_stack_trace_cmd(addr, have_addr, count, modif) } db_printf("panic: %s\n", panicstr); /* xxx ? where did we panic and whose stack are we using? */ - db_dump_stack((VAX_CALLFRAME *)(ddb_regs.sp), ddb_regs.ap); + db_dump_stack((VAX_CALLFRAME *)(ddb_regs.fp), ddb_regs.ap); return; } |