Lines Matching defs:off

83     uint32_t    off;
200 uint32_t off;
273 uint32_t off;
316 uint32_t off;
613 * @param off The offset to start reading at, relative to the
618 static int rtDbgModCvReadAt(PRTDBGMODCV pThis, uint32_t off, void *pvBuf, size_t cb)
622 rc = pThis->pMod->pImgVt->pfnReadAt(pThis->pMod, UINT32_MAX, off + pThis->offBase, pvBuf, cb);
624 rc = RTFileReadAt(pThis->hFile, off + pThis->offBase, pvBuf, cb, NULL);
634 * @param off The offset to start reading at, relative to the
639 static int rtDbgModCvReadAtAlloc(PRTDBGMODCV pThis, uint32_t off, void **ppvBuf, size_t cb)
646 rc = pThis->pMod->pImgVt->pfnReadAt(pThis->pMod, UINT32_MAX, off + pThis->offBase, pvBuf, cb);
648 rc = RTFileReadAt(pThis->hFile, off + pThis->offBase, pvBuf, cb, NULL);
716 * @param off Offset into the segment
721 static int rtDbgModCvAddSymbol(PRTDBGMODCV pThis, uint32_t iSeg, uint64_t off, const char *pchName,
728 Log2(("CV Sym: %04x:%08x %.*s\n", iSeg, off, cchName, pchName));
738 Log(("Invalid segment index/offset %#06x:%08x for symbol %.*s\n", iSeg, off, cchName, pchName));
741 if (off <= pThis->pSegMap->aDescs[iSeg - 1].cb + pThis->pSegMap->aDescs[iSeg - 1].off)
742 off -= pThis->pSegMap->aDescs[iSeg - 1].off;
747 uint64_t uAddrSym = off + ((uint32_t)pThis->pSegMap->aDescs[iSeg - 1].iFrame << 4);
751 uint64_t uAddrFirst = (uint64_t)pThis->pSegMap->aDescs[j].off
755 Log(("CV addr fix: %04x:%08x -> %04x:%08x\n", iSeg, off, j + 1, uAddrSym - uAddrFirst));
756 off = uAddrSym - uAddrFirst;
763 Log(("Invalid segment index/offset %#06x:%08x for symbol %.*s [2]\n", iSeg, off, cchName, pchName));
772 || off > pThis->pSegMap->aDescs[iSeg - 1].cb)
774 Log(("Invalid segment index/offset %#06x:%08x for symbol %.*s\n", iSeg, off, cchName, pchName));
777 off += pThis->pSegMap->aDescs[iSeg - 1].off;
785 int rc = RTDbgModSymbolAdd(pThis->hCnt, pszName, iSeg, off, 0, 0 /*fFlags*/, NULL);
786 Log(("Symbol: %04x:%08x %.*s [%Rrc]\n", iSeg, off, cchName, pchName, rc));
792 Log(("Symbol: %04x:%08x %.*s\n", iSeg, off, cchName, pchName));
831 uint16_t off = *uCursor.pu16++;
838 rc = rtDbgModCvAddSymbol(pThis, iSeg, off, uCursor.pch, cchName, 0);
847 uint32_t off = *uCursor.pu32++;
854 rc = rtDbgModCvAddSymbol(pThis, iSeg, off, uCursor.pch, cchName, 0);
924 Log2((" #%02u: %04x:%08x LB %08x\n", iSeg, paSegs[iSeg].iSeg, paSegs[iSeg].off, paSegs[iSeg].cb));
977 int rc = rtDbgModCvReadAtAlloc(pThis, pThis->paDirEnts[iSegMap].off, (void **)&pThis->pSegMap,
982 rc = rtDbgModCvReadAtAlloc(pThis, pThis->paDirEnts[iSegNames].off, (void **)&pThis->pszzSegNames,
1043 idx, paDescs[i].off, paDescs[i].cb, paDescs[i].fFlags, paDescs[i].iOverlay, paDescs[i].iGroup,
1064 RTDBGMODCV_CHECK_NOMSG_RET_BF(!(paDescs[i].fFlags & RTCVSEGMAPDESC_F_GROUP) || paDescs[i].off == 0); /* assumed below */
1096 RTDBGMODCV_CHECK_NOMSG_RET_BF(paDescs[i].off == 0);
1116 uint64_t offEnd = (uint64_t)paDescs[i].off + paDescs[i].cb;
1165 uint64_t uAddr = (uint64_t)paDescs[i].off + ((uint32_t)paDescs[i].iFrame << 4);
1180 uint64_t uAddr = (uint64_t)paDescs[j].off + ((uint32_t)paDescs[j].iFrame << 4);
1218 if ((uint64_t)paDescs[j].off + ((uint32_t)paDescs[j].iFrame << 4) == uBestAddr)
1249 uint64_t offThisEnd = paDescs[j].off + paDescs[j].cb;
1252 if (paDescs[j].off < offFirst)
1253 offFirst = paDescs[j].off;
1271 paDescs[j].off = 0;
1313 i, paDescs[i].off, paDescs[i].cb, paDescs[i].iGroup,
1368 pDst->off = RT_MAKE_U32(pSrc->offLow, pSrc->offHigh);
1446 i, pDirEnt->iMod, pDirEnt->uSubSectType, pDirEnt->off, pDirEnt->cb,
1449 if ( pDirEnt->off >= cbDbgInfo
1451 || pDirEnt->off + pDirEnt->cb > cbDbgInfo)
1453 Log(("CV directory entry #%u is out of bounds: %#x LB %#x, max %#x\n", i, pDirEnt->off, pDirEnt->cb, cbDbgInfo));
1681 rc = rtDbgModCvReadAtAlloc(pThis, pDirEnt->off, &pvSubSect, pDirEnt->cb);
2035 static DECLCALLBACK(int) rtDbgModCv_LineByAddr(PRTDBGMODINT pMod, RTDBGSEGIDX iSeg, RTUINTPTR off,
2039 return RTDbgModLineByAddr(pThis->hCnt, iSeg, off, poffDisp, pLineInfo);
2061 uint32_t iSeg, RTUINTPTR off, uint32_t *piOrdinal)
2065 return RTDbgModLineAdd(pThis->hCnt, pszFile, uLineNo, iSeg, off, piOrdinal);
2070 static DECLCALLBACK(int) rtDbgModCv_SymbolByAddr(PRTDBGMODINT pMod, RTDBGSEGIDX iSeg, RTUINTPTR off, uint32_t fFlags,
2074 return RTDbgModSymbolByAddr(pThis->hCnt, iSeg, off, fFlags, poffDisp, pSymInfo);
2106 RTDBGSEGIDX iSeg, RTUINTPTR off, RTUINTPTR cb, uint32_t fFlags,
2111 return RTDbgModSymbolAdd(pThis->hCnt, pszSymbol, iSeg, off, cb, fFlags, piOrdinal);
2376 * @param off The offset where to expect CV debug info.
2382 uint32_t off, uint32_t cb, const char *pszFilename)
2401 rc = pDbgMod->pImgVt->pfnReadAt(pDbgMod, UINT32_MAX, off, &Hdr, sizeof(Hdr));
2403 rc = RTFileReadAt(hFile, off, &Hdr, sizeof(Hdr), NULL);
2410 Log2(("RTDbgModCv: Found COFF debug info header at %#x (LB %#x) in %s\n", off, cb, pszFilename));
2450 pThis->offCoffDbgInfo = off;
2468 * @param off The offset where to expect CV debug info.
2473 uint32_t off, uint32_t cb, RTLDRARCH enmArch, const char *pszFilename)
2489 if (pCvHdr->off < cb && pCvHdr->off >= sizeof(*pCvHdr))
2493 off, cb, pCvHdr->off, enmFileType));
2503 pThis->offBase = off;
2505 pThis->offDir = pCvHdr->off;
2554 * @param off The offset where to expect CV debug info.
2559 static int rtDbgModCvProbeFile2(PRTDBGMODINT pThis, RTCVFILETYPE enmFileType, RTFILE hFile, uint32_t off, uint32_t cb,
2563 int rc = RTFileReadAt(hFile, off, &CvHdr, sizeof(CvHdr), NULL);
2565 rc = rtDbgModCvProbeCommon(pThis, &CvHdr, enmFileType, hFile, off, cb, enmArch, pszFilename);
2690 cbFile - CvHdr.off, CvHdr.off, enmArch, pszFilename);