Changeset 45983 in vbox
- Timestamp:
- May 10, 2013 2:19:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGPlugInWinNt.cpp
r44528 r45983 308 308 typedef union NTHDRSU 309 309 { 310 IMAGE_NT_HEADERS 64vX_32;310 IMAGE_NT_HEADERS32 vX_32; 311 311 IMAGE_NT_HEADERS64 vX_64; 312 312 } NTHDRS; … … 361 361 return; 362 362 } 363 if ( WINNT_UNION(pThis, pHdrs, OptionalHeader.SizeOfImage) != cbImage)363 if (RT_ALIGN(WINNT_UNION(pThis, pHdrs, OptionalHeader.SizeOfImage), _4K) != RT_ALIGN(cbImage, _4K)) 364 364 { 365 365 Log(("DigWinNt: %s: Invalid OH.SizeOfImage: %#x, expected %#x\n", pszName, WINNT_UNION(pThis, pHdrs, OptionalHeader.SizeOfImage), cbImage)); … … 368 368 if (WINNT_UNION(pThis, pHdrs, OptionalHeader.NumberOfRvaAndSizes) != IMAGE_NUMBEROF_DIRECTORY_ENTRIES) 369 369 { 370 Log(("DigWinNt: %s: Invalid OH. SizeOfImage: %#x\n", pszName, WINNT_UNION(pThis, pHdrs, OptionalHeader.NumberOfRvaAndSizes)));370 Log(("DigWinNt: %s: Invalid OH.NumberOfRvaAndSizes: %#x\n", pszName, WINNT_UNION(pThis, pHdrs, OptionalHeader.NumberOfRvaAndSizes))); 371 371 return; 372 372 } … … 658 658 659 659 /* 660 * Look for the MISYSPTEsection name that seems to be a part of all kernels.660 * Look for the PAGELK section name that seems to be a part of all kernels. 661 661 * Then try find the module table entry for it. Since it's the first entry 662 662 * in the PsLoadedModuleList we can easily validate the list head and report … … 676 676 { 677 677 int rc = DBGFR3MemScan(pUVM, 0 /*idCpu*/, &KernelAddr, UINT32_C(0xffff0000) - KernelAddr.FlatPtr, 678 1, " MISYSPTE", sizeof("MISYSPTE") - 1, &KernelAddr);678 1, "PAGELK\0", sizeof("PAGELK\0"), &KernelAddr); 679 679 if (RT_FAILURE(rc)) 680 680 break;
Note:
See TracChangeset
for help on using the changeset viewer.