From e60a36f564de0e23bcd68b8ec750e9e1f7cff1a3 Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Tue, 27 Jul 2004 07:06:20 +0000 Subject: [PATCH] Properly implement kdb_cpu_{set|clear}_singlestep to allow DDB to continue from breakpoints. --- sys/powerpc/include/kdb.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/powerpc/include/kdb.h b/sys/powerpc/include/kdb.h index e573f70cbd7..7193641096e 100644 --- a/sys/powerpc/include/kdb.h +++ b/sys/powerpc/include/kdb.h @@ -30,15 +30,19 @@ #define _MACHINE_KDB_H_ #include +#include +#include static __inline void kdb_cpu_clear_singlestep(void) { + kdb_frame->srr1 &= ~PSL_SE; } static __inline void kdb_cpu_set_singlestep(void) { + kdb_frame->srr1 |= PSL_SE; } static __inline void