Changeset 74344 in vbox
- Timestamp:
- Sep 18, 2018 2:24:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/assert.cpp
r73762 r74344 44 44 #include <iprt/stdarg.h> 45 45 #ifdef IN_RING3 46 # include <iprt/env.h> 46 47 # include <stdio.h> 48 # ifdef RT_OS_WINDOWS 49 # include <iprt/win/windows.h> 50 # endif 47 51 #endif 48 52 #include "internal/assert.h" … … 139 143 #ifdef IPRT_WITH_ASSERT_STACK 140 144 /* The stack dump. */ 141 char szStack[sizeof(g_szRTAssertStack)]; 142 size_t cchStack = RTDbgStackDumpSelf(szStack, sizeof(szStack), 0); 145 char szStack[sizeof(g_szRTAssertStack)]; 146 size_t cchStack = 0; 147 # if defined(IN_RING3) && defined(RT_OS_WINDOWS) /** @todo make this stack on/off thing more modular. */ 148 bool fStack = !IsDebuggerPresent() && !RTEnvExist("IPRT_ASSERT_NO_STACK"); 149 # elif defined(IN_RING3) 150 bool fStack = !RTEnvExist("IPRT_ASSERT_NO_STACK"); 151 # else 152 bool fStack = true; 153 # endif 154 if (fStack) 155 cchStack = RTDbgStackDumpSelf(szStack, sizeof(szStack), 0); 156 else 157 szStack[0] = '\0'; 143 158 memcpy(g_szRTAssertStack, szStack, cchStack + 1); 144 159 #endif
Note:
See TracChangeset
for help on using the changeset viewer.