Feature patch: Xbox Crash Handling.

Seems that the Xbox had debugger detection routines and a way to have a Debug Break. this patch activates it.
This commit is contained in:
Renaud Lepage
2006-09-15 14:06:27 +00:00
parent 125fccc33c
commit 12a7250def
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
# include "archutils/Darwin/Crash.h"
using CrashHandler::IsDebuggerPresent;
using CrashHandler::DebugBreak;
#elif defined(_XBOX)
#elif defined(_XDBG)
#else
# include <unistd.h>
#endif
@@ -21,7 +21,7 @@ using CrashHandler::DebugBreak;
void NORETURN sm_crash( const char *reason )
{
#if ( defined(_WINDOWS) && defined(CRASH_HANDLER) ) || defined(MACOSX)
#if ( defined(_WINDOWS) && defined(CRASH_HANDLER) ) || defined(MACOSX) || defined(_XDBG)
/* If we're being debugged, throw a debug break so it'll suspend the process. */
if( IsDebuggerPresent() )
{