vbox的更動 57125 路徑 trunk/src/VBox/Debugger
- 時間撮記:
- 2015-7-30 上午10:16:39 (9 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Debugger/DBGPlugInWinNt.cpp
r56986 r57125 71 71 72 72 /** 73 * PsLoadedModuleList entry for 32-bit NT aka LDR_DATA_TABLE_ENTRY. 74 * Tested with XP. 75 * 76 * @todo This is incomplete and just to get rid of warnings. 73 * PsLoadedModuleList entry for 64-bit NT aka LDR_DATA_TABLE_ENTRY. 77 74 */ 78 75 typedef struct NTMTE64 … … 953 950 */ 954 951 CPUMMODE enmMode = DBGFR3CpuGetMode(pUVM, 0 /*idCpu*/); 955 uint64_t const uStart = enmMode == CPUMMODE_LONG ? UINT64_C(0xffff f80000000000) : UINT32_C(0x80001000);952 uint64_t const uStart = enmMode == CPUMMODE_LONG ? UINT64_C(0xffff080000000000) : UINT32_C(0x80001000); 956 953 uint64_t const uEnd = enmMode == CPUMMODE_LONG ? UINT64_C(0xffffffffffff0000) : UINT32_C(0xffff0000); 957 954 DBGFADDRESS KernelAddr; … … 1061 1058 && pHdrs->FileHeader.SizeOfOptionalHeader == sizeof(pHdrs->OptionalHeader) 1062 1059 && pHdrs->FileHeader.NumberOfSections >= 10 /* the kernel has lots */ 1063 && (pHdrs->FileHeader.Characteristics & (IMAGE_FILE_EXECUTABLE_IMAGE | IMAGE_FILE_DLL)) == IMAGE_FILE_EXECUTABLE_IMAGE 1060 && (pHdrs->FileHeader.Characteristics & (IMAGE_FILE_EXECUTABLE_IMAGE | IMAGE_FILE_DLL)) 1061 == IMAGE_FILE_EXECUTABLE_IMAGE 1064 1062 && pHdrs->OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR64_MAGIC 1065 1063 && pHdrs->OptionalHeader.NumberOfRvaAndSizes == IMAGE_NUMBEROF_DIRECTORY_ENTRIES … … 1077 1075 while (RT_SUCCESS(rc)) 1078 1076 { 1079 /* check the name. */1077 /* Read the start of the MTE and check some basic members. */ 1080 1078 DBGFADDRESS MteAddr = HitAddr; 1081 1079 rc = DBGFR3MemRead(pUVM, 0 /*idCpu*/, DBGFR3AddrSub(&MteAddr, RT_OFFSETOF(NTMTE64, DllBase)), … … 1092 1090 ) 1093 1091 { 1092 /* Try read the base name and compare with known NT kernel names. */ 1094 1093 rc = DBGFR3MemRead(pUVM, 0 /*idCpu*/, DBGFR3AddrFromFlat(pUVM, &Addr, uMte2.v64.BaseDllName.Buffer), 1095 1094 u.wsz, uMte2.v64.BaseDllName.Length); … … 1101 1100 ) 1102 1101 { 1102 /* Read the link entry of the previous entry in the list and check that its 1103 forward pointer points at the MTE we've found. */ 1103 1104 rc = DBGFR3MemRead(pUVM, 0 /*idCpu*/, 1104 1105 DBGFR3AddrFromFlat(pUVM, &Addr, uMte2.v64.InLoadOrderLinks.Blink),
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器