Changeset 73097 in vbox for trunk/src/VBox/Debugger
- Timestamp:
- Jul 12, 2018 9:06:33 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123672
- Location:
- trunk/src/VBox/Debugger
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGCCmdWorkers.cpp
r69500 r73097 63 63 pszCmd = RTStrStripL(pszCmd); 64 64 size_t cchCmd = pszCmd ? strlen(pszCmd) : 0; 65 pBp = (PDBGCBP)RTMemAlloc(RT_ OFFSETOF(DBGCBP, szCmd[cchCmd + 1]));65 pBp = (PDBGCBP)RTMemAlloc(RT_UOFFSETOF_DYN(DBGCBP, szCmd[cchCmd + 1])); 66 66 if (!pBp) 67 67 return VERR_NO_MEMORY; -
trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp
r73077 r73097 5321 5321 { 5322 5322 RTMemFree(pEvtCfg); 5323 *ppEvtCfg = pEvtCfg = (PDBGCEVTCFG)RTMemAlloc(RT_ OFFSETOF(DBGCEVTCFG, szCmd[cchCmd + 1]));5323 *ppEvtCfg = pEvtCfg = (PDBGCEVTCFG)RTMemAlloc(RT_UOFFSETOF_DYN(DBGCEVTCFG, szCmd[cchCmd + 1])); 5324 5324 if (!pEvtCfg) 5325 5325 return VERR_NO_MEMORY; -
trunk/src/VBox/Debugger/DBGCInternal.h
r69500 r73097 236 236 237 237 /** Converts a Command Helper pointer to a pointer to DBGC instance data. */ 238 #define DBGC_CMDHLP2DBGC(pCmdHlp) ( (PDBGC)((uintptr_t)(pCmdHlp) - RT_ OFFSETOF(DBGC, CmdHlp)) )238 #define DBGC_CMDHLP2DBGC(pCmdHlp) ( (PDBGC)((uintptr_t)(pCmdHlp) - RT_UOFFSETOF(DBGC, CmdHlp)) ) 239 239 240 240 -
trunk/src/VBox/Debugger/DBGCTcp.cpp
r69500 r73097 51 51 52 52 /** Converts a pointer to DBGCTCP::Back to a pointer to DBGCTCP. */ 53 #define DBGCTCP_BACK2DBGCTCP(pBack) ( (PDBGCTCP)((char *) pBack - RT_OFFSETOF(DBGCTCP, Back)) )53 #define DBGCTCP_BACK2DBGCTCP(pBack) ( (PDBGCTCP)((char *)(pBack) - RT_UOFFSETOF(DBGCTCP, Back)) ) 54 54 55 55 -
trunk/src/VBox/Debugger/DBGPlugInLinux.cpp
r69820 r73097 2133 2133 if (*pszCfgCur == '\"') 2134 2134 { 2135 pCfgItem = (PDBGDIGGERLINUXCFGITEM)RTMemAllocZ(RT_OFFSETOF(DBGDIGGERLINUXCFGITEM, u.aszString[pszCfgCur - pszCfg + 1])); 2135 pCfgItem = (PDBGDIGGERLINUXCFGITEM)RTMemAllocZ(RT_UOFFSETOF_DYN(DBGDIGGERLINUXCFGITEM, 2136 u.aszString[pszCfgCur - pszCfg + 1])); 2136 2137 if (pCfgItem) 2137 2138 { -
trunk/src/VBox/Debugger/DBGPlugInWinNt.cpp
r70338 r73097 499 499 */ 500 500 uint32_t const cShs = WINNT_UNION(pThis, pHdrs, FileHeader.NumberOfSections); 501 PDBGDIGGERWINNTRDR pRdr = (PDBGDIGGERWINNTRDR)RTMemAlloc(RT_ OFFSETOF(DBGDIGGERWINNTRDR, aMappings[cShs + 2]));501 PDBGDIGGERWINNTRDR pRdr = (PDBGDIGGERWINNTRDR)RTMemAlloc(RT_UOFFSETOF_DYN(DBGDIGGERWINNTRDR, aMappings[cShs + 2])); 502 502 if (!pRdr) 503 503 return VERR_NO_MEMORY;
Note:
See TracChangeset
for help on using the changeset viewer.