儲存庫 vbox 的更動 14072
- 時間撮記:
- 2008-11-10 下午11:53:50 (16 年 以前)
- 位置:
- trunk
- 檔案:
-
- 修改 5 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/VBox/dbgf.h
r13832 r14072 589 589 590 590 VMMR3DECL(int) DBGFR3ModuleLoad(PVM pVM, const char *pszFilename, RTGCUINTPTR AddressDelta, const char *pszName, RTGCUINTPTR ModuleAddress, unsigned cbImage); 591 VMMR3DECL(void) DBGFR3ModuleRelocate(PVM pVM, RTGCUINTPTR OldImageBase, RTGCUINTPTR NewImageBase, unsignedcbImage,591 VMMR3DECL(void) DBGFR3ModuleRelocate(PVM pVM, RTGCUINTPTR OldImageBase, RTGCUINTPTR NewImageBase, RTGCUINTPTR cbImage, 592 592 const char *pszFilename, const char *pszName); 593 593 VMMR3DECL(int) DBGFR3SymbolAdd(PVM pVM, RTGCUINTPTR ModuleAddress, RTGCUINTPTR SymbolAddress, RTUINT cbSymbol, const char *pszSymbol); -
trunk/src/VBox/VMM/DBGFSym.cpp
r13841 r14072 638 638 * @param pszName The module name. 639 639 */ 640 VMMR3DECL(void) DBGFR3ModuleRelocate(PVM pVM, RTGCUINTPTR OldImageBase, RTGCUINTPTR NewImageBase, unsignedcbImage,640 VMMR3DECL(void) DBGFR3ModuleRelocate(PVM pVM, RTGCUINTPTR OldImageBase, RTGCUINTPTR NewImageBase, RTGCUINTPTR cbImage, 641 641 const char *pszFilename, const char *pszName) 642 642 { … … 647 647 Log(("SymUnloadModule64(,%RGv) failed, lasterr=%d\n", OldImageBase, GetLastError())); 648 648 649 DWORD64 LoadedImageBase = SymLoadModule64(pVM, NULL, (char *)(void *)pszFilename, (char *)(void *)pszName, NewImageBase, cbImage); 649 DWORD ImageSize = (DWORD)cbImage; Assert(ImageSize == cbImage); 650 DWORD64 LoadedImageBase = SymLoadModule64(pVM, NULL, (char *)(void *)pszFilename, (char *)(void *)pszName, NewImageBase, ImageSize); 650 651 if (!LoadedImageBase) 651 652 Log(("SymLoadModule64(,,%s,,) -> lasterr=%d (relocate)\n", pszFilename, GetLastError())); -
trunk/src/VBox/VMM/PDM.cpp
r13824 r14072 1170 1170 * Iterate registered devices looking for the device. 1171 1171 */ 1172 RTUINTcchDevice = strlen(pszDevice);1172 size_t cchDevice = strlen(pszDevice); 1173 1173 for (PPDMDEV pDev = pVM->pdm.s.pDevs; pDev; pDev = pDev->pNext) 1174 1174 { -
trunk/src/VBox/VMM/PDMDevice.cpp
r14070 r14072 423 423 PPDMDEV pdmR3DevLookup(PVM pVM, const char *pszName) 424 424 { 425 RTUINTcchName = strlen(pszName);425 size_t cchName = strlen(pszName); 426 426 for (PPDMDEV pDev = pVM->pdm.s.pDevs; pDev; pDev = pDev->pNext) 427 427 if ( pDev->cchName == cchName … … 693 693 pDev->pInstances = NULL; 694 694 pDev->pDevReg = pDevReg; 695 pDev->cchName = strlen(pDevReg->szDeviceName);695 pDev->cchName = (uint32_t)strlen(pDevReg->szDeviceName); 696 696 697 697 if (pDevPrev) … … 741 741 * Iterate registered devices looking for the device. 742 742 */ 743 RTUINTcchDevice = strlen(pszDevice);743 size_t cchDevice = strlen(pszDevice); 744 744 for (PPDMDEV pDev = pVM->pdm.s.pDevs; pDev; pDev = pDev->pNext) 745 745 { -
trunk/src/VBox/VMM/PDMLdr.cpp
r13830 r14072 907 907 * Allocate temp memory for return buffer. 908 908 */ 909 unsignedcchDir = strlen(pszDir);910 unsignedcchFile = strlen(pszFile);911 unsignedcchDefaultExt;909 size_t cchDir = strlen(pszDir); 910 size_t cchFile = strlen(pszFile); 911 size_t cchDefaultExt; 912 912 913 913 /* … … 919 919 cchDefaultExt = strlen(pszDefaultExt); 920 920 921 unsigned cchPath = cchDir + 1 + cchFile + cchDefaultExt + 1; 922 if (cchPath > RTPATH_MAX) 923 { 924 AssertMsgFailed(("Path too long!\n")); 925 return NULL; 926 } 921 size_t cchPath = cchDir + 1 + cchFile + cchDefaultExt + 1; 922 AssertMsgReturn(cchPath <= RTPATH_MAX, ("Path too long!\n"), NULL); 927 923 928 924 char *pszRet = (char *)RTMemTmpAlloc(cchDir + 1 + cchFile + cchDefaultExt + 1); 929 if (!pszRet) 930 { 931 AssertMsgFailed(("Out of temporary memory!\n")); 932 return NULL; 933 } 925 AssertMsgReturn(!pszRet, ("Out of temporary memory!\n"), NULL); 934 926 935 927 /* … … 983 975 984 976 char *pszNearSym1; 985 unsignedcchNearSym1;977 size_t cchNearSym1; 986 978 RTRCINTPTR offNearSym1; 987 979 988 980 char *pszNearSym2; 989 unsignedcchNearSym2;981 size_t cchNearSym2; 990 982 RTRCINTPTR offNearSym2; 991 983 } QMFEIPARG, *PQMFEIPARG;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器