@@ -43,8 +43,6 @@ class XRCORE_API xrDebug
4343 using UnhandledExceptionFilter = LONG(WINAPI*)(EXCEPTION_POINTERS *exPtrs);
4444
4545private:
46- static const u16 MaxFramesCountDefault = 512 ;
47-
4846 static UnhandledExceptionFilter PrevFilter;
4947 static OutOfMemoryCallbackFunc OutOfMemoryCallback;
5048 static CrashHandler OnCrash;
@@ -77,20 +75,15 @@ class XRCORE_API xrDebug
7775 static void DoExit (const std::string &message);
7876
7977 static void LogStackTrace (const char *header);
80- static xr_vector<xr_string> BuildStackTrace (u16 maxFramesCount = MaxFramesCountDefault );
78+ static xr_vector<xr_string> BuildStackTrace (u16 maxFramesCount = 512 );
8179private:
80+ static bool symEngineInitialized;
81+ static Lock dbgHelpLock;
8282 static void FormatLastError (char *buffer, const size_t &bufferSize);
8383 static void SetupExceptionHandler (const bool &dedicated);
8484 static LONG WINAPI UnhandledFilter (EXCEPTION_POINTERS *exPtrs);
8585 static void WINAPI PreErrorHandler (INT_PTR);
86- static void SaveMiniDump (EXCEPTION_POINTERS *exPtrs);
87-
88- // /
89- // / Next members relates to stack tracing
90- // /
91- static bool symEngineInitialized;
92- static Lock dbgHelpLock;
93-
86+ static void SaveMiniDump (EXCEPTION_POINTERS *exPtrs);
9487 static xr_vector<xr_string> BuildStackTrace (PCONTEXT threadCtx, u16 maxFramesCount);
9588 static bool GetNextStackFrameString (LPSTACKFRAME stackFrame, PCONTEXT threadCtx, xr_string &frameStr);
9689 static bool InitializeSymbolEngine ();
0 commit comments