Lines Matching refs:addr
41 extern "C" _Unwind_Ptr __gnu_Unwind_Find_exidx(_Unwind_Ptr addr, int *len);
114 uint8_t get8(pint_t addr) { in get8() argument
116 memcpy(&val, (void *)addr, sizeof(val)); in get8()
119 uint16_t get16(pint_t addr) { in get16() argument
121 memcpy(&val, (void *)addr, sizeof(val)); in get16()
124 uint32_t get32(pint_t addr) { in get32() argument
126 memcpy(&val, (void *)addr, sizeof(val)); in get32()
129 uint64_t get64(pint_t addr) { in get64() argument
131 memcpy(&val, (void *)addr, sizeof(val)); in get64()
134 double getDouble(pint_t addr) { in getDouble() argument
136 memcpy(&val, (void *)addr, sizeof(val)); in getDouble()
139 v128 getVector(pint_t addr) { in getVector() argument
141 memcpy(&val, (void *)addr, sizeof(val)); in getVector()
144 uintptr_t getP(pint_t addr);
145 static uint64_t getULEB128(pint_t &addr, pint_t end);
146 static int64_t getSLEB128(pint_t &addr, pint_t end);
148 pint_t getEncodedP(pint_t &addr, pint_t end, uint8_t encoding,
150 bool findFunctionName(pint_t addr, char *buf, size_t bufLen,
158 inline uintptr_t LocalAddressSpace::getP(pint_t addr) { in getP() argument
160 return get64(addr); in getP()
162 return get32(addr); in getP()
167 inline uint64_t LocalAddressSpace::getULEB128(pint_t &addr, pint_t end) { in getULEB128() argument
168 const uint8_t *p = (uint8_t *)addr; in getULEB128()
187 addr = (pint_t) p; in getULEB128()
192 inline int64_t LocalAddressSpace::getSLEB128(pint_t &addr, pint_t end) { in getSLEB128() argument
193 const uint8_t *p = (uint8_t *)addr; in getSLEB128()
208 addr = (pint_t) p; in getSLEB128()
213 LocalAddressSpace::getEncodedP(pint_t &addr, pint_t end, uint8_t encoding, in getEncodedP() argument
215 pint_t startAddr = addr; in getEncodedP()
216 const uint8_t *p = (uint8_t *)addr; in getEncodedP()
222 result = getP(addr); in getEncodedP()
224 addr = (pint_t) p; in getEncodedP()
227 result = (pint_t)getULEB128(addr, end); in getEncodedP()
230 result = get16(addr); in getEncodedP()
232 addr = (pint_t) p; in getEncodedP()
235 result = get32(addr); in getEncodedP()
237 addr = (pint_t) p; in getEncodedP()
240 result = (pint_t)get64(addr); in getEncodedP()
242 addr = (pint_t) p; in getEncodedP()
245 result = (pint_t)getSLEB128(addr, end); in getEncodedP()
249 result = (pint_t)(int16_t)get16(addr); in getEncodedP()
251 addr = (pint_t) p; in getEncodedP()
255 result = (pint_t)(int32_t)get32(addr); in getEncodedP()
257 addr = (pint_t) p; in getEncodedP()
260 result = (pint_t)get64(addr); in getEncodedP()
262 addr = (pint_t) p; in getEncodedP()
320 static inline bool _dyld_find_unwind_sections(void* addr, in _dyld_find_unwind_sections() argument
324 if (!dladdr(addr, &dlinfo)) in _dyld_find_unwind_sections()
457 inline bool LocalAddressSpace::findFunctionName(pint_t addr, char *buf, in findFunctionName() argument
462 if (dladdr((void *)addr, &dyldInfo)) { in findFunctionName()
465 *offset = (addr - (pint_t) dyldInfo.dli_saddr); in findFunctionName()
488 uint8_t get8(pint_t addr);
489 uint16_t get16(pint_t addr);
490 uint32_t get32(pint_t addr);
491 uint64_t get64(pint_t addr);
492 pint_t getP(pint_t addr);
493 uint64_t getULEB128(pint_t &addr, pint_t end);
494 int64_t getSLEB128(pint_t &addr, pint_t end);
495 pint_t getEncodedP(pint_t &addr, pint_t end, uint8_t encoding,
497 bool findFunctionName(pint_t addr, char *buf, size_t bufLen,
502 void *localCopy(pint_t addr);
507 template <typename P> uint8_t OtherAddressSpace<P>::get8(pint_t addr) { in get8() argument
508 return *((uint8_t *)localCopy(addr)); in get8()
511 template <typename P> uint16_t OtherAddressSpace<P>::get16(pint_t addr) { in get16() argument
512 return P::E::get16(*(uint16_t *)localCopy(addr)); in get16()
515 template <typename P> uint32_t OtherAddressSpace<P>::get32(pint_t addr) { in get32() argument
516 return P::E::get32(*(uint32_t *)localCopy(addr)); in get32()
519 template <typename P> uint64_t OtherAddressSpace<P>::get64(pint_t addr) { in get64() argument
520 return P::E::get64(*(uint64_t *)localCopy(addr)); in get64()
524 typename P::uint_t OtherAddressSpace<P>::getP(pint_t addr) { in getP() argument
525 return P::getP(*(uint64_t *)localCopy(addr)); in getP()
529 uint64_t OtherAddressSpace<P>::getULEB128(pint_t &addr, pint_t end) { in getULEB128() argument
530 uintptr_t size = (end - addr); in getULEB128()
531 LocalAddressSpace::pint_t laddr = (LocalAddressSpace::pint_t) localCopy(addr); in getULEB128()
534 addr += (laddr - sladdr); in getULEB128()
539 int64_t OtherAddressSpace<P>::getSLEB128(pint_t &addr, pint_t end) { in getSLEB128() argument
540 uintptr_t size = (end - addr); in getSLEB128()
541 LocalAddressSpace::pint_t laddr = (LocalAddressSpace::pint_t) localCopy(addr); in getSLEB128()
544 addr += (laddr - sladdr); in getSLEB128()
548 template <typename P> void *OtherAddressSpace<P>::localCopy(pint_t addr) { in localCopy() argument
553 bool OtherAddressSpace<P>::findFunctionName(pint_t addr, char *buf, in findFunctionName() argument