- Timestamp:
- Sep 16, 2008 9:14:29 AM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r12293 r12479 387 387 { "AssertMsg1", (void *)UNWIND_WRAP(AssertMsg1) }, 388 388 { "AssertMsg2", (void *)AssertMsg2 }, /** @todo replace this by RTAssertMsg2V */ 389 { "RTStrPrintf", (void *)RTStrPrintf }, 390 { "RTStrPrintfV", (void *)RTStrPrintfV }, 389 391 }; 390 392 -
trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h
r10805 r12479 182 182 * The upper 16-bit is the major version, the the lower the minor version. 183 183 * When incompatible changes are made, the upper major number has to be changed. */ 184 #define SUPDRV_IOC_VERSION 0x0009000 0184 #define SUPDRV_IOC_VERSION 0x00090001 185 185 186 186 /** SUP_IOCTL_COOKIE. */ -
trunk/src/VBox/HostDrivers/Support/SUPR0.def
r12100 r12479 115 115 AssertMsg1 116 116 AssertMsg2 117 RTStrPrintf 118 RTStrPrintfV 119 117 120 118 121 ; data -
trunk/src/VBox/VMM/VMM.cpp
r11945 r12479 2275 2275 pVM->vmm.s.CallHostR0JmpBuf.rip = 0; 2276 2276 #endif 2277 LogRel((pVM->vmm.s.szRing0AssertMsg1)); 2278 LogRel((pVM->vmm.s.szRing0AssertMsg2)); 2277 2279 return VINF_EM_DBG_HYPER_ASSERTION; 2278 2280 -
trunk/src/VBox/VMM/VMMInternal.h
r11474 r12479 250 250 /** The Ring-0 jmp buffer. */ 251 251 VMMR0JMPBUF CallHostR0JmpBuf; 252 /** Buffer for storing ring 0 assertion output, so we can reroute it to the release log. */ 253 char szRing0AssertMsg1[256]; 254 char szRing0AssertMsg2[256]; 252 255 /** @} */ 253 256 -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r10844 r12479 45 45 #include <iprt/stdarg.h> 46 46 #include <iprt/mp.h> 47 #include <iprt/string.h> 47 48 48 49 #if defined(_MSC_VER) && defined(RT_ARCH_AMD64) /** @todo check this with with VC7! */ … … 1155 1156 "Location : %s(%d) %s\n", 1156 1157 pszExpr, pszFile, uLine, pszFunction)); 1158 1159 PVM pVM = GVMMR0GetVMByEMT(NIL_RTNATIVETHREAD); 1160 if (pVM) 1161 RTStrPrintf(pVM->vmm.s.szRing0AssertMsg1, sizeof(pVM->vmm.s.szRing0AssertMsg1), 1162 "\n!!R0-Assertion Failed!!\n" 1163 "Expression: %s\n" 1164 "Location : %s(%d) %s\n", 1165 pszExpr, pszFile, uLine, pszFunction); 1157 1166 } 1158 1167 … … 1185 1194 va_start(args, pszFormat); 1186 1195 RTLogFormatV(rtLogOutput, pLog, pszFormat, args); 1196 PVM pVM = GVMMR0GetVMByEMT(NIL_RTNATIVETHREAD); 1197 if (pVM) 1198 RTStrPrintfV(pVM->vmm.s.szRing0AssertMsg2, sizeof(pVM->vmm.s.szRing0AssertMsg2), pszFormat, args); 1187 1199 va_end(args); 1188 1200 }
Note:
See TracChangeset
for help on using the changeset viewer.