From 67e945bab95d04b3cda8368a909e4b11771c86d8 Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Tue, 9 Dec 2003 13:37:31 +0000 Subject: [PATCH] Make breakpoint() actually break into ddb. Reviewed by: grehan --- sys/powerpc/include/cpufunc.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h index 39b5b2e73e4a..3d399d561118 100644 --- a/sys/powerpc/include/cpufunc.h +++ b/sys/powerpc/include/cpufunc.h @@ -47,16 +47,17 @@ powerpc_mb(void) struct thread; -#ifdef __GNUC__ +#ifdef DDB +void ddb_trap(void); +#endif static __inline void breakpoint(void) { - - return; -} - +#ifdef DDB + ddb_trap(); #endif +} /* CPU register mangling inlines */