diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-04-09 08:39:43 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-04-09 08:39:43 +0000 |
commit | 3b627c3457e39f1d9441b7b18a512cacc4bb9590 (patch) | |
tree | 07ce482a2e95c706da0c3f93c74f0683fda93902 /sys/arch/i386/stand/libsa/debug.c | |
parent | ad40c3644a13f2dad4f4cf2dcb5a1c96dea57e58 (diff) |
emulate bios calls. more debugging stuff. some fixes.
Diffstat (limited to 'sys/arch/i386/stand/libsa/debug.c')
-rw-r--r-- | sys/arch/i386/stand/libsa/debug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/libsa/debug.c b/sys/arch/i386/stand/libsa/debug.c index d1ec26d31d5..8f1b6449582 100644 --- a/sys/arch/i386/stand/libsa/debug.c +++ b/sys/arch/i386/stand/libsa/debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: debug.c,v 1.2 1997/04/05 18:56:24 mickey Exp $ */ +/* $OpenBSD: debug.c,v 1.3 1997/04/09 08:39:29 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -39,6 +39,7 @@ const char *reg_names[] = { REG_NAMES }; const int nreg = NENTS(reg_names); struct reg reg; const u_int32_t *reg_values[] = { REG_VALUES(reg) }; +const char *trap_names[] = { TRAP_NAMES }; int debug_init() @@ -52,7 +53,7 @@ dump_regs(trapno) { int i; - printf("trap: %u\n", trapno); + printf("trap: %s\n", trap_names[trapno]); for (i = 0; i < nreg; putchar((++i % 4)?' ':'\n')) printf ("%s=0x%x", reg_names[i], *reg_values[i]); if (i % 4) |