diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-01-04 21:11:45 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-01-04 21:11:45 +0000 |
commit | a489d26f9c81ec1e2b32444e6a158a7dc63fe84b (patch) | |
tree | 6e6e921c772884576e660e40314cdc7df2eed788 /sys | |
parent | b003517ff80a7a90666ae924afd2487c38388e7e (diff) |
switch to SET_PC_REGS if available, okay miod@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ddb/db_run.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/ddb/db_run.c b/sys/ddb/db_run.c index 1d8a78593c8..b9b40a9b4ee 100644 --- a/sys/ddb/db_run.c +++ b/sys/ddb/db_run.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_run.c,v 1.16 2003/02/12 14:41:07 jason Exp $ */ +/* $OpenBSD: db_run.c,v 1.17 2005/01/04 21:11:44 espie Exp $ */ /* $NetBSD: db_run.c,v 1.8 1996/02/05 01:57:12 christos Exp $ */ /* @@ -117,15 +117,13 @@ db_stop_at_pc(regs, is_breakpoint) #ifdef PC_ADVANCE PC_ADVANCE(regs); #else - /* - * XXX why on earth is this ifndef'd? Please explain! - * I believe this was a workaround a bug where singlestep - * breakpoints got deleted before recognized as such. This - * bug is now gone and probably this #ifndef should go too. - */ -#ifndef m88k +# ifdef SET_PC_REGS + SET_PC_REGS(regs, old_pc); +# else +# ifndef m88k PC_REGS(regs) = old_pc; -#endif +# endif +# endif #endif } db_clear_single_step(regs); |