Add optional Init(). This can be used so that HOOKS is set and accessible during the child crash handler by moving that code to Init().

This commit is contained in:
Steve Checkoway
2006-08-12 22:06:19 +00:00
parent 09c963ed2d
commit 608261a152
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -917,7 +917,7 @@ int main(int argc, char* argv[])
/* Set up arch hooks first. This may set up crash handling. */
HOOKS = MakeArchHooks();
HOOKS->Init();
#if !defined(DEBUG)
/* Tricky: for other exceptions, we want a backtrace. To do this in Windows,
* we need to catch the exception and force a crash. The call stack is still