aboutsummaryrefslogtreecommitdiff
path: root/mp/src/utils/common/tools_minidump.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/utils/common/tools_minidump.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/utils/common/tools_minidump.cpp')
-rw-r--r--mp/src/utils/common/tools_minidump.cpp122
1 files changed, 61 insertions, 61 deletions
diff --git a/mp/src/utils/common/tools_minidump.cpp b/mp/src/utils/common/tools_minidump.cpp
index a0c84209..a7659200 100644
--- a/mp/src/utils/common/tools_minidump.cpp
+++ b/mp/src/utils/common/tools_minidump.cpp
@@ -1,61 +1,61 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#include <windows.h>
-#include <dbghelp.h>
-#include "tier0/minidump.h"
-#include "tools_minidump.h"
-
-static bool g_bToolsWriteFullMinidumps = false;
-static ToolsExceptionHandler g_pCustomExceptionHandler = NULL;
-
-
-// --------------------------------------------------------------------------------- //
-// Internal helpers.
-// --------------------------------------------------------------------------------- //
-
-static LONG __stdcall ToolsExceptionFilter( struct _EXCEPTION_POINTERS *ExceptionInfo )
-{
- // Non VMPI workers write a minidump and show a crash dialog like normal.
- int iType = MiniDumpNormal;
- if ( g_bToolsWriteFullMinidumps )
- iType = MiniDumpWithDataSegs | MiniDumpWithIndirectlyReferencedMemory;
-
- WriteMiniDumpUsingExceptionInfo( ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo, (MINIDUMP_TYPE)iType );
- return EXCEPTION_CONTINUE_SEARCH;
-}
-
-
-static LONG __stdcall ToolsExceptionFilter_Custom( struct _EXCEPTION_POINTERS *ExceptionInfo )
-{
- // Run their custom handler.
- g_pCustomExceptionHandler( ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo );
- return EXCEPTION_EXECUTE_HANDLER; // (never gets here anyway)
-}
-
-
-// --------------------------------------------------------------------------------- //
-// Interface functions.
-// --------------------------------------------------------------------------------- //
-
-void EnableFullMinidumps( bool bFull )
-{
- g_bToolsWriteFullMinidumps = bFull;
-}
-
-
-void SetupDefaultToolsMinidumpHandler()
-{
- SetUnhandledExceptionFilter( ToolsExceptionFilter );
-}
-
-
-void SetupToolsMinidumpHandler( ToolsExceptionHandler fn )
-{
- g_pCustomExceptionHandler = fn;
- SetUnhandledExceptionFilter( ToolsExceptionFilter_Custom );
-}
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#include <windows.h>
+#include <dbghelp.h>
+#include "tier0/minidump.h"
+#include "tools_minidump.h"
+
+static bool g_bToolsWriteFullMinidumps = false;
+static ToolsExceptionHandler g_pCustomExceptionHandler = NULL;
+
+
+// --------------------------------------------------------------------------------- //
+// Internal helpers.
+// --------------------------------------------------------------------------------- //
+
+static LONG __stdcall ToolsExceptionFilter( struct _EXCEPTION_POINTERS *ExceptionInfo )
+{
+ // Non VMPI workers write a minidump and show a crash dialog like normal.
+ int iType = MiniDumpNormal;
+ if ( g_bToolsWriteFullMinidumps )
+ iType = MiniDumpWithDataSegs | MiniDumpWithIndirectlyReferencedMemory;
+
+ WriteMiniDumpUsingExceptionInfo( ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo, (MINIDUMP_TYPE)iType );
+ return EXCEPTION_CONTINUE_SEARCH;
+}
+
+
+static LONG __stdcall ToolsExceptionFilter_Custom( struct _EXCEPTION_POINTERS *ExceptionInfo )
+{
+ // Run their custom handler.
+ g_pCustomExceptionHandler( ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo );
+ return EXCEPTION_EXECUTE_HANDLER; // (never gets here anyway)
+}
+
+
+// --------------------------------------------------------------------------------- //
+// Interface functions.
+// --------------------------------------------------------------------------------- //
+
+void EnableFullMinidumps( bool bFull )
+{
+ g_bToolsWriteFullMinidumps = bFull;
+}
+
+
+void SetupDefaultToolsMinidumpHandler()
+{
+ SetUnhandledExceptionFilter( ToolsExceptionFilter );
+}
+
+
+void SetupToolsMinidumpHandler( ToolsExceptionHandler fn )
+{
+ g_pCustomExceptionHandler = fn;
+ SetUnhandledExceptionFilter( ToolsExceptionFilter_Custom );
+}