diff options
author | Brandon Creighton <bjc@cvs.openbsd.org> | 2000-10-11 06:13:41 +0000 |
---|---|---|
committer | Brandon Creighton <bjc@cvs.openbsd.org> | 2000-10-11 06:13:41 +0000 |
commit | c8c7b1e8c05502e0acc9522f787ed04f8dd51be9 (patch) | |
tree | 534fe8f84a4dcc0de097aad0e09fb4d09768f0f9 /sys | |
parent | f2288554a2f0964ed35ed8e0b386b57dc7bc9761 (diff) |
fix argument printing in stack trace
Diffstat (limited to 'sys')
-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; } |