diff options
author | Andrew A. de Laix <alain@lindenlab.com> | 2010-07-09 13:30:58 -0700 |
---|---|---|
committer | Andrew A. de Laix <alain@lindenlab.com> | 2010-07-09 13:30:58 -0700 |
commit | db480bcd9cfac89995cc52609b48ecee32281f3f (patch) | |
tree | 43a78ec11130153edeed2dc9fa92a8de98eb2fcf /indra/newview | |
parent | 75c1c70b2595ff28d41fb059b7fbce0234c975e7 (diff) |
Don't write windows os minidumps if running from a debugger.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llwindebug.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llwindebug.cpp b/indra/newview/llwindebug.cpp index 502fefd4ef..948b9a56e1 100644 --- a/indra/newview/llwindebug.cpp +++ b/indra/newview/llwindebug.cpp @@ -91,12 +91,15 @@ LONG NTAPI vectoredHandler(PEXCEPTION_POINTERS exception_infop) } // static -void LLWinDebug::init() +void LLWinDebug::init() { static bool s_first_run = true; // Load the dbghelp dll now, instead of waiting for the crash. // Less potential for stack mangling + // Don't install vectored exception handler if being debugged. + if(IsDebuggerPresent()) return; + if (s_first_run) { // First, try loading from the directory that the app resides in. |