From 64199b57a42cc83252cf4ec5e086bb85a411c214 Mon Sep 17 00:00:00 2001 From: "peterv%propagandism.org" Date: Thu, 22 Jul 2004 14:44:38 +0000 Subject: [PATCH] Fix for bug 249028 (Make XPCOM_DEBUG_BREAK=trap work on OS X). r=bryner, sr=dougt. git-svn-id: svn://10.0.0.236/trunk@159654 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/base/nsDebugImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/xpcom/base/nsDebugImpl.cpp b/mozilla/xpcom/base/nsDebugImpl.cpp index 7251c88e234..19eedd99bae 100644 --- a/mozilla/xpcom/base/nsDebugImpl.cpp +++ b/mozilla/xpcom/base/nsDebugImpl.cpp @@ -65,6 +65,9 @@ #if defined(__GNUC__) && defined(__i386) # define DebugBreak() { asm("int $3"); } +#elif defined(__APPLE__) +# include "MacTypes.h" +# define DebugBreak() { Debugger(); } #else # define DebugBreak() #endif