From de8da71c73a1603ee831add56527ef69ddca2ee3 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 22 Nov 2021 20:42:20 +0000 Subject: [PATCH] - number of future lines is adjustable git-svn-id: http://moon:8086/svn/mips@189 a8ebac50-d88d-4704-bea3-6648445a41b3 --- src/libsys/mips_dbg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libsys/mips_dbg.c b/src/libsys/mips_dbg.c index 9830271..c3660b5 100644 --- a/src/libsys/mips_dbg.c +++ b/src/libsys/mips_dbg.c @@ -33,6 +33,7 @@ extern int tdisasm(char *buffer, unsigned address, unsigned iword, unsigned char static char g_buf[80]; static int DEBUG_PRINT = 0; +static int SHOW_NUM_INSTR = 5; enum { @@ -405,7 +406,7 @@ int dbg_handler(struct xcptcontext * xcp) pInstr = pAddr_prev; // Disassemble instructions - for (i=0; i < 3; i++) + for (i=0; i < SHOW_NUM_INSTR; i++) { dbg_print_word((long)pInstr); if (pInstr != pAddr_curr)