From c8c7b1e8c05502e0acc9522f787ed04f8dd51be9 Mon Sep 17 00:00:00 2001 From: Brandon Creighton Date: Wed, 11 Oct 2000 06:13:41 +0000 Subject: fix argument printing in stack trace --- sys/arch/vax/vax/db_machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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; } -- cgit v1.2.3