- Timestamp:
- Sep 15, 2009 7:56:27 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgas.cpp
r22116 r23022 1268 1268 RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE); 1269 1269 1270 RTDBGSEGIDX iSeg ;1271 RTUINTPTR offSeg;1272 RTDBGMOD hMod= rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, NULL);1270 RTDBGSEGIDX iSeg = NIL_RTDBGSEGIDX; /* shut up gcc */ 1271 RTUINTPTR offSeg = 0; 1272 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, NULL); 1273 1273 if (hMod == NIL_RTDBGMOD) 1274 1274 return VERR_NOT_FOUND; … … 1306 1306 RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE); 1307 1307 1308 RTDBGSEGIDX iSeg ;1309 RTUINTPTR offSeg ;1310 RTUINTPTR MapAddr ;1311 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);1308 RTDBGSEGIDX iSeg = NIL_RTDBGSEGIDX; /* shut up gcc */ 1309 RTUINTPTR offSeg = 0; 1310 RTUINTPTR MapAddr = 0; 1311 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr); 1312 1312 if (hMod == NIL_RTDBGMOD) 1313 1313 { … … 1355 1355 RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE); 1356 1356 1357 RTDBGSEGIDX iSeg ;1358 RTUINTPTR offSeg ;1359 RTUINTPTR MapAddr ;1360 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);1357 RTDBGSEGIDX iSeg = NIL_RTDBGSEGIDX; 1358 RTUINTPTR offSeg = 0; 1359 RTUINTPTR MapAddr = 0; 1360 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr); 1361 1361 if (hMod == NIL_RTDBGMOD) 1362 1362 { … … 1655 1655 RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE); 1656 1656 1657 RTDBGSEGIDX iSeg ;1658 RTUINTPTR offSeg;1659 RTDBGMOD hMod= rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, NULL);1657 RTDBGSEGIDX iSeg = NIL_RTDBGSEGIDX; /* shut up gcc */ 1658 RTUINTPTR offSeg = 0; /* ditto */ 1659 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, NULL); 1660 1660 if (hMod == NIL_RTDBGMOD) 1661 1661 return VERR_NOT_FOUND; … … 1692 1692 RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE); 1693 1693 1694 RTDBGSEGIDX iSeg ;1695 RTUINTPTR offSeg ;1696 RTUINTPTR MapAddr ;1697 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);1694 RTDBGSEGIDX iSeg = NIL_RTDBGSEGIDX; /* shut up gcc */ 1695 RTUINTPTR offSeg = 0; 1696 RTUINTPTR MapAddr = 0; 1697 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr); 1698 1698 if (hMod == NIL_RTDBGMOD) 1699 1699 return VERR_NOT_FOUND; … … 1733 1733 RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE); 1734 1734 1735 RTDBGSEGIDX iSeg ;1736 RTUINTPTR offSeg ;1737 RTUINTPTR MapAddr ;1738 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);1735 RTDBGSEGIDX iSeg = NIL_RTDBGSEGIDX; /* shut up gcc */ 1736 RTUINTPTR offSeg = 0; 1737 RTUINTPTR MapAddr = 0; 1738 RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr); 1739 1739 if (hMod == NIL_RTDBGMOD) 1740 1740 return VERR_NOT_FOUND;
Note:
See TracChangeset
for help on using the changeset viewer.