added needed header files after removing global.h from Crash.h. Also simplify.

This commit is contained in:
Steve Checkoway
2003-08-01 09:28:50 +00:00
parent efd431e45a
commit 7f9aed802b
+3 -7
View File
@@ -10,19 +10,15 @@
#include "Crash.h"
#include "archutils/Unix/CrashHandler.h"
#include <Carbon/Carbon.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
static void *crashedFramePtr = NULL;
OSStatus HandleException(ExceptionInformation *theException)
{
crashedFramePtr = (void *)theException->registerImage->R1.lo;
if (!crashedFramePtr) {
write(fileno(stderr),
"***********************\n"
"It uses the high bytes!\n"
"***********************\n", 24*3);
crashedFramePtr = (void *)theException->registerImage->R1.hi;
}
CrashSignalHandler(theException->theKind);
return -1;
}