Lines Matching defs:enmSect

524     krtDbgModDwarfSect      enmSect;
1409 * @param enmSect The section to load.
1411 static int rtDbgModDwarfLoadSection(PRTDBGMODDWARF pThis, krtDbgModDwarfSect enmSect)
1416 if (pThis->aSections[enmSect].pv)
1423 if (!pThis->aSections[enmSect].fPresent)
1425 Assert(pThis->aSections[enmSect].cb);
1428 if (!pThis->aSections[enmSect].cb)
1434 if (pThis->aSections[enmSect].offFile < 0)
1441 pThis->aSections[enmSect].iDbgInfo,
1442 pThis->aSections[enmSect].offFile,
1443 pThis->aSections[enmSect].cb,
1444 &pThis->aSections[enmSect].pv);
1454 * @param enmSect The section to unload.
1456 static int rtDbgModDwarfUnloadSection(PRTDBGMODDWARF pThis, krtDbgModDwarfSect enmSect)
1458 if (!pThis->aSections[enmSect].pv)
1461 int rc = pThis->pDbgInfoMod->pImgVt->pfnUnmapPart(pThis->pDbgInfoMod, pThis->aSections[enmSect].cb, &pThis->aSections[enmSect].pv);
2069 size_t off = pCursor->pb - (uint8_t const *)pCursor->pDwarfMod->aSections[pCursor->enmSect].pv;
2184 * @param enmSect The name of the section to read.
2186 static int rtDwarfCursor_Init(PRTDWARFCURSOR pCursor, PRTDBGMODDWARF pThis, krtDbgModDwarfSect enmSect)
2188 int rc = rtDbgModDwarfLoadSection(pThis, enmSect);
2192 pCursor->enmSect = enmSect;
2193 pCursor->pbStart = (uint8_t const *)pThis->aSections[enmSect].pv;
2195 pCursor->cbLeft = pThis->aSections[enmSect].cb;
2215 * @param enmSect The name of the section to read.
2219 krtDbgModDwarfSect enmSect, uint32_t offSect)
2221 if (offSect > pThis->aSections[enmSect].cb)
2223 Log(("rtDwarfCursor_InitWithOffset: offSect=%#x cb=%#x enmSect=%d\n", offSect, pThis->aSections[enmSect].cb, enmSect));
2227 int rc = rtDwarfCursor_Init(pCursor, pThis, enmSect);
3345 krtDbgModDwarfSect enmSect;
3349 case DW_AT_stmt_list: enmSect = krtDbgModDwarfSect_line; enmWrt = krtDwarfRef_LineSection; break;
3350 case DW_AT_macro_info: enmSect = krtDbgModDwarfSect_loc; enmWrt = krtDwarfRef_LocSection; break;
3351 case DW_AT_ranges: enmSect = krtDbgModDwarfSect_ranges; enmWrt = krtDwarfRef_RangesSection; break;
3355 size_t cbSect = pCursor->pDwarfMod->aSections[enmSect].cb;
3360 Log(("rtDwarfDecode_SectOff: bad off=%#llx, attr %#x (%s), enmSect=%d cb=%#llx; Assuming watcom/gcc.\n", off,
3361 pDesc->uAttr, rtDwarfLog_AttrName(pDesc->uAttr), enmSect, cbSect));
4701 krtDbgModDwarfSect enmSect;
4703 #define ELSE_IF_STRCMP_SET(a_Name) else if (!strcmp(pszSection, #a_Name)) enmSect = krtDbgModDwarfSect_ ## a_Name
4728 AssertMsgReturn(!pThis->aSections[enmSect].fPresent, ("duplicate %s\n", pszSection), VINF_SUCCESS /*ignore*/);
4730 pThis->aSections[enmSect].fPresent = true;
4731 pThis->aSections[enmSect].offFile = pDbgInfo->offFile;
4732 pThis->aSections[enmSect].pv = NULL;
4733 pThis->aSections[enmSect].cb = (size_t)pDbgInfo->cb;
4734 pThis->aSections[enmSect].iDbgInfo = pDbgInfo->iDbgInfo;
4735 if (pThis->aSections[enmSect].cb != pDbgInfo->cb)
4736 pThis->aSections[enmSect].cb = ~(size_t)0;