Make Mac OS X debug trap impl use raise(SIGTRAP) instead of Mac OS X debugging function so we're only required to set the XPCOM debug env variable and not also the Mac OS X debug break variable. Also make GNUC/x86 test more robust, include '__i386__' in the test because not all platforms define '__i386' (Mac OS X is one of those, though it doesn't really matter here since we do a separate test for Mac OS X). b=339987 r=mento sr=dougt

git-svn-id: svn://10.0.0.236/trunk@198898 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
joshmoz%gmail.com
2006-06-02 20:06:43 +00:00
parent 13fb4ad206
commit 51cd8132db

View File

@@ -72,10 +72,6 @@ Abort(const char *aMsg);
static void
Break(const char *aMsg);
#if defined(__APPLE__) && defined(TARGET_CARBON)
# include "MacTypes.h"
#endif
#if defined(XP_OS2)
# define INCL_WINDIALOGS // need for WinMessageBox
# include <os2.h>
@@ -461,10 +457,10 @@ Break(const char *aMsg)
asm("int $3");
#elif defined(XP_BEOS)
DEBUGGER(aMsg);
#elif defined(__GNUC__) && (defined(__i386) || defined(__x86_64__))
#elif defined(XP_MACOSX)
raise(SIGTRAP);
#elif defined(__GNUC__) && (defined(__i386__) || defined(__i386) || defined(__x86_64__))
asm("int $3");
#elif defined(__APPLE__) && defined(TARGET_CARBON)
Debugger();
#else
// don't know how to break on this platform
#endif