diff options
author | gallatin <gallatin@FreeBSD.org> | 2003-12-09 13:37:31 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2003-12-09 13:37:31 +0000 |
commit | d10b5c1ba50e744c47dd549f21fbfa5fde2e1d4d (patch) | |
tree | ed83f82e1afa826e8d7d584306ad40452027b269 | |
parent | e55a5a6e98decc1b3736a898712188a9209e73d7 (diff) | |
download | FreeBSD-src-d10b5c1ba50e744c47dd549f21fbfa5fde2e1d4d.zip FreeBSD-src-d10b5c1ba50e744c47dd549f21fbfa5fde2e1d4d.tar.gz |
Make breakpoint() actually break into ddb.
Reviewed by: grehan
-rw-r--r-- | sys/powerpc/include/cpufunc.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h index 39b5b2e..3d399d5 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 */ |