Changeset 57167 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 4, 2015 9:52:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGFCoreWrite.cpp
r56514 r57167 313 313 * Gets the guest-CPU context suitable for dumping into the core file. 314 314 * 315 * @param pVM Pointer to the VM. 315 316 * @param pCtx Pointer to the guest-CPU context. 316 317 * @param pDbgfCpu Where to dump the guest-CPU data. 317 318 */ 318 static void dbgfR3GetCoreCpu(P CPUMCTX pCtx, PDBGFCORECPU pDbgfCpu)319 static void dbgfR3GetCoreCpu(PVM pVM, PCPUMCTX pCtx, PDBGFCORECPU pDbgfCpu) 319 320 { 320 321 #define DBGFCOPYSEL(a_dbgfsel, a_cpumselreg) \ … … 376 377 pDbgfCpu->aXcr[1] = pCtx->aXcr[1]; 377 378 AssertCompile(sizeof(pDbgfCpu->ext) == sizeof(*pCtx->pXStateR3)); 378 memcpy(&pDbgfCpu->ext, pCtx->pXStateR3, sizeof(pDbgfCpu->ext)); 379 pDbgfCpu->cbExt = CPUMR3GetGuestFpuExtStateSize(pVM); 380 if (RT_LIKELY(pDbgfCpu->cbExt)) 381 memcpy(&pDbgfCpu->ext, pCtx->pXStateR3, cbExt); 379 382 380 383 #undef DBGFCOPYSEL … … 522 525 523 526 RT_BZERO(pDbgfCoreCpu, sizeof(*pDbgfCoreCpu)); 524 dbgfR3GetCoreCpu(p Ctx, pDbgfCoreCpu);527 dbgfR3GetCoreCpu(pVM, pCtx, pDbgfCoreCpu); 525 528 rc = Elf64WriteNoteHdr(hFile, NT_VBOXCPU, g_pcszCoreVBoxCpu, pDbgfCoreCpu, sizeof(*pDbgfCoreCpu)); 526 529 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.