diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-07-28 12:33:56 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-07-28 12:33:56 +0000 |
commit | c29a5bf49d323d97a6c0585f8192002cd11b4bdd (patch) | |
tree | 63600dde7e942a2e96fb36087e1e0c4abde17faf | |
parent | bb627abc1d6eb106b7da1d2fae0058ff06d87f71 (diff) |
Nuke option JEFF_DEBUG for good.
(This code relies upon undefined C behaviour. Every day in ddb is your lucky
day...)
-rw-r--r-- | sys/arch/m88k/m88k/db_trace.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/sys/arch/m88k/m88k/db_trace.c b/sys/arch/m88k/m88k/db_trace.c index 06b92b11697..11698f15380 100644 --- a/sys/arch/m88k/m88k/db_trace.c +++ b/sys/arch/m88k/m88k/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.1 2004/06/19 18:28:37 miod Exp $ */ +/* $OpenBSD: db_trace.c,v 1.2 2004/07/28 12:33:55 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -1105,18 +1105,17 @@ db_stack_trace_print(db_expr_t addr, } /* - * The value we've just read will be either another frame pointer, - * or the start of another exception frame. + * The value we've just read will be either + * another frame pointer, or the start of + * another exception frame. */ - if ( -#ifdef JEFF_DEBUG - val2 == 0 -#else - val2 == 0x12345678 -#endif - && db_trace_get_val(val1-4, &val2) && val2 == val1 - && db_trace_get_val(val1-8, &val2) && val2 == val1) { - /* we've found a frame, so the stack must have been good */ + if (val2 == 0x12345678 && + db_trace_get_val(val1 - 4, &val2) && + val2 == val1 && + db_trace_get_val(val1 - 8, &val2) && + val2 == val1) { + /* we've found a frame, so the stack + must have been good */ (*pr)("%x looks like a frame, accepting %x\n",val1,ptr); break; } |