From 3a85fbca09b643cdf5a66a54a778d26e55c1e4b2 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 27 Nov 2001 05:36:11 +0000 Subject: Use symbolic constants to identify ddb traps. Fix a comment as well. --- sys/arch/mvme88k/ddb/db_trace.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'sys/arch/mvme88k/ddb') diff --git a/sys/arch/mvme88k/ddb/db_trace.c b/sys/arch/mvme88k/ddb/db_trace.c index cb5fdb9b111..8f708a2a8d8 100644 --- a/sys/arch/mvme88k/ddb/db_trace.c +++ b/sys/arch/mvme88k/ddb/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.8 2001/03/16 00:10:55 miod Exp $ */ +/* $OpenBSD: db_trace.c,v 1.9 2001/11/27 05:36:10 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -288,7 +288,7 @@ frame_is_sane(db_regs_t *regs) return 0; #ifndef DIAGNOSTIC - /* disabled for now -- see fpu_enable in luna88k/eh.s */ + /* disabled for now -- see fpu_enable in mvme88k/eh.s */ /* r0 must be 0 (obviously) */ if (regs->r[0] != 0) return 0; @@ -331,8 +331,7 @@ frame_is_sane(db_regs_t *regs) char * m88k_exception_name(unsigned vector) { - switch (vector) - { + switch (vector) { default: case 0: return "Reset"; case 1: return "Interrupt"; @@ -347,9 +346,12 @@ m88k_exception_name(unsigned vector) case 10: return "Error Exception"; case 114: return "FPU precise"; case 115: return "FPU imprecise"; - case 130: return "Ddb break"; - case 131: return "Ddb trace"; - case 132: return "Ddb trap"; + case DDB_ENTRY_BKPT_NO: + return "ddb break"; + case DDB_ENTRY_TRACE_NO: + return "ddb trace"; + case DDB_ENTRY_TRAP_NO: + return "ddb trap"; case 451: return "Syscall"; } } -- cgit v1.2.3