Lines Matching refs:addressSpace
154 static bool findFDE(A &addressSpace, pint_t pc, pint_t ehSectionStart,
157 static const char *decodeFDE(A &addressSpace, pint_t fdeStart,
160 static bool parseFDEInstructions(A &addressSpace, const FDE_Info &fdeInfo,
164 static const char *parseCIE(A &addressSpace, pint_t cie, CIE_Info *cieInfo);
172 const char *CFI_Parser<A>::decodeFDE(A &addressSpace, pint_t fdeStart, in decodeFDE() argument
176 pint_t cfiLength = (pint_t)addressSpace.get32(p); in decodeFDE()
180 cfiLength = (pint_t)addressSpace.get64(p); in decodeFDE()
185 uint32_t ciePointer = addressSpace.get32(p); in decodeFDE()
194 const char *err = parseCIE(addressSpace, cieStart, cieInfo); in decodeFDE()
201 addressSpace.getEncodedP(p, nextCFI, cieInfo->pointerEncoding); in decodeFDE()
203 addressSpace.getEncodedP(p, nextCFI, cieInfo->pointerEncoding & 0x0F); in decodeFDE()
208 pint_t augLen = (pint_t)addressSpace.getULEB128(p, nextCFI); in decodeFDE()
213 if (addressSpace.getEncodedP(p, nextCFI, cieInfo->lsdaEncoding & 0x0F) != in decodeFDE()
218 addressSpace.getEncodedP(p, nextCFI, cieInfo->lsdaEncoding); in decodeFDE()
233 bool CFI_Parser<A>::findFDE(A &addressSpace, pint_t pc, pint_t ehSectionStart, in findFDE() argument
244 pint_t cfiLength = addressSpace.get32(p); in findFDE()
248 cfiLength = (pint_t)addressSpace.get64(p); in findFDE()
253 uint32_t id = addressSpace.get32(p); in findFDE()
260 uint32_t ciePointer = addressSpace.get32(p); in findFDE()
264 if (parseCIE(addressSpace, cieStart, cieInfo) == NULL) { in findFDE()
268 addressSpace.getEncodedP(p, nextCFI, cieInfo->pointerEncoding); in findFDE()
269 pint_t pcRange = addressSpace.getEncodedP( in findFDE()
277 pint_t augLen = (pint_t)addressSpace.getULEB128(p, nextCFI); in findFDE()
282 if (addressSpace.getEncodedP( in findFDE()
286 fdeInfo->lsda = addressSpace in findFDE()
315 const char *CFI_Parser<A>::parseCIE(A &addressSpace, pint_t cie, in parseCIE() argument
331 pint_t cieLength = (pint_t)addressSpace.get32(p); in parseCIE()
336 cieLength = (pint_t)addressSpace.get64(p); in parseCIE()
343 if (addressSpace.get32(p) != 0) in parseCIE()
347 uint8_t version = addressSpace.get8(p); in parseCIE()
353 while (addressSpace.get8(p) != 0) in parseCIE()
357 cieInfo->codeAlignFactor = (uint32_t)addressSpace.getULEB128(p, cieContentEnd); in parseCIE()
359 cieInfo->dataAlignFactor = (int)addressSpace.getSLEB128(p, cieContentEnd); in parseCIE()
361 uint64_t raReg = (version == 1) ? addressSpace.get8(p++) in parseCIE()
362 : addressSpace.getULEB128(p, cieContentEnd); in parseCIE()
367 if (addressSpace.get8(strStart) == 'z') { in parseCIE()
369 addressSpace.getULEB128(p, cieContentEnd); in parseCIE()
370 for (pint_t s = strStart; addressSpace.get8(s) != '\0'; ++s) { in parseCIE()
371 switch (addressSpace.get8(s)) { in parseCIE()
376 cieInfo->personalityEncoding = addressSpace.get8(p); in parseCIE()
379 cieInfo->personality = addressSpace in parseCIE()
383 cieInfo->lsdaEncoding = addressSpace.get8(p); in parseCIE()
387 cieInfo->pointerEncoding = addressSpace.get8(p); in parseCIE()
412 bool CFI_Parser<A>::parseFDEInstructions(A &addressSpace, in parseFDEInstructions() argument
454 uint8_t opcode = addressSpace.get8(p); in parseFDEInstructions()
463 codeOffset = addressSpace.getEncodedP(p, instructionsEnd, in parseFDEInstructions()
468 codeOffset += (addressSpace.get8(p) * cieInfo.codeAlignFactor); in parseFDEInstructions()
474 codeOffset += (addressSpace.get16(p) * cieInfo.codeAlignFactor); in parseFDEInstructions()
480 codeOffset += (addressSpace.get32(p) * cieInfo.codeAlignFactor); in parseFDEInstructions()
486 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
487 offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd) * in parseFDEInstructions()
500 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
511 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
521 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
535 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
536 reg2 = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
580 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
581 offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
593 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
604 (int32_t)addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
611 length = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
619 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
627 length = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
636 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
642 offset = addressSpace.getSLEB128(p, instructionsEnd) * in parseFDEInstructions()
650 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
651 offset = addressSpace.getSLEB128(p, instructionsEnd) * in parseFDEInstructions()
666 (int32_t)(addressSpace.getSLEB128(p, instructionsEnd) * in parseFDEInstructions()
672 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
680 offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd) * in parseFDEInstructions()
688 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
694 offset = addressSpace.getSLEB128(p, instructionsEnd) * in parseFDEInstructions()
702 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
710 length = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
719 length = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
724 reg = addressSpace.getULEB128(p, instructionsEnd); in parseFDEInstructions()
730 offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd) * in parseFDEInstructions()
812 offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd) * in parseFDEInstructions()