Changeset 13306 in vbox for trunk/src/VBox/Runtime/r0drv/darwin/assert-r0drv-darwin.cpp
- Timestamp:
- Oct 15, 2008 9:17:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/assert-r0drv-darwin.cpp
r11645 r13306 44 44 *******************************************************************************/ 45 45 /** The last assert message, 1st part. */ 46 RTDATADECL(char) g_szRTAssertMsg1[1024];46 RTDATADECL(char) g_szRTAssertMsg1[1024]; 47 47 /** The last assert message, 2nd part. */ 48 RTDATADECL(char) g_szRTAssertMsg2[2048]; 48 RTDATADECL(char) g_szRTAssertMsg2[2048]; 49 /** The last assert message, file name. */ 50 RTDATADECL(const char *) volatile g_pszRTAssertFile; 51 /** The last assert message, line number. */ 52 RTDATADECL(uint32_t) volatile g_u32RTAssertLine; 53 /** The last assert message, function name. */ 54 RTDATADECL(const char *) volatile g_pszRTAssertFunction; 49 55 50 56 … … 68 74 "Location : %s(%d) %s\n", 69 75 pszExpr, pszFile, uLine, pszFunction); 76 ASMAtomicUoWritePtr(&g_pszRTAssertFile, pszFile); 77 ASMAtomicUoWriteU32(&g_u32RTAssertLine, uLine); 78 ASMAtomicUoWritePtr(&g_pszRTAssertFunction, pszFunction); 70 79 } 71 80 … … 91 100 RTStrPrintfV(g_szRTAssertMsg2, sizeof(g_szRTAssertMsg2), pszFormat, va); 92 101 va_end(va); 102 } 93 103 104 105 RTR0DECL(void) RTR0AssertPanicSystem(void) 106 { 94 107 panic("%s%s", g_szRTAssertMsg1, g_szRTAssertMsg2); 95 108 }
Note:
See TracChangeset
for help on using the changeset viewer.