From 567eb56efde01f7d4e325becfc72d3b532460d71 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 21 Oct 1996 05:37:13 +0000 Subject: Added 'S' for Stack tracebacks. There are usually 3 items on the stack before the routine that caused you to get into the debugger (due to the calls to stacktrace, actually). However, other than that garbage on the top of the stack, this has proven to be useful for me in tracking down strange things. While it might be better to get mdbstacktrace working (since it looks like it wants to be more complete), this gets functionality right away. Hope people find it useful. --- sys/arch/arc/arc/minidebug.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/arch/arc/arc/minidebug.c b/sys/arch/arc/arc/minidebug.c index c1babc64a88..4de8b212038 100644 --- a/sys/arch/arc/arc/minidebug.c +++ b/sys/arch/arc/arc/minidebug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: minidebug.c,v 1.2 1996/08/26 11:11:55 pefo Exp $ */ +/* $OpenBSD: minidebug.c,v 1.3 1996/10/21 05:37:12 imp Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)kadb.c 8.1 (Berkeley) 6/10/93 - * $Id: minidebug.c,v 1.2 1996/08/26 11:11:55 pefo Exp $ + * $Id: minidebug.c,v 1.3 1996/10/21 05:37:12 imp Exp $ */ /* @@ -408,7 +408,10 @@ static int ssandrun; /* Single step and run flag (when cont at brk) */ break_insert(); } return(TRUE); - + case 'S': + printf("Stack traceback:\n"); + stacktrace(); + return(TRUE); case 's': set_break(mdbpcb.pcb_regs[PC] + 8); return(TRUE); -- cgit v1.2.3