Lines Matching refs:addr
41 extern "C" _Unwind_Ptr __gnu_Unwind_Find_exidx(_Unwind_Ptr addr, int *len);
107 uint8_t get8(pint_t addr) { in get8() argument
109 memcpy(&val, (void *)addr, sizeof(val)); in get8()
112 uint16_t get16(pint_t addr) { in get16() argument
114 memcpy(&val, (void *)addr, sizeof(val)); in get16()
117 uint32_t get32(pint_t addr) { in get32() argument
119 memcpy(&val, (void *)addr, sizeof(val)); in get32()
122 uint64_t get64(pint_t addr) { in get64() argument
124 memcpy(&val, (void *)addr, sizeof(val)); in get64()
127 double getDouble(pint_t addr) { in getDouble() argument
129 memcpy(&val, (void *)addr, sizeof(val)); in getDouble()
132 v128 getVector(pint_t addr) { in getVector() argument
134 memcpy(&val, (void *)addr, sizeof(val)); in getVector()
137 uintptr_t getP(pint_t addr);
138 static uint64_t getULEB128(pint_t &addr, pint_t end);
139 static int64_t getSLEB128(pint_t &addr, pint_t end);
141 pint_t getEncodedP(pint_t &addr, pint_t end, uint8_t encoding,
143 bool findFunctionName(pint_t addr, char *buf, size_t bufLen,
151 inline uintptr_t LocalAddressSpace::getP(pint_t addr) { in getP() argument
153 return get64(addr); in getP()
155 return get32(addr); in getP()
160 inline uint64_t LocalAddressSpace::getULEB128(pint_t &addr, pint_t end) { in getULEB128() argument
161 const uint8_t *p = (uint8_t *)addr; in getULEB128()
180 addr = (pint_t) p; in getULEB128()
185 inline int64_t LocalAddressSpace::getSLEB128(pint_t &addr, pint_t end) { in getSLEB128() argument
186 const uint8_t *p = (uint8_t *)addr; in getSLEB128()
201 addr = (pint_t) p; in getSLEB128()
206 LocalAddressSpace::getEncodedP(pint_t &addr, pint_t end, uint8_t encoding, in getEncodedP() argument
208 pint_t startAddr = addr; in getEncodedP()
209 const uint8_t *p = (uint8_t *)addr; in getEncodedP()
215 result = getP(addr); in getEncodedP()
217 addr = (pint_t) p; in getEncodedP()
220 result = (pint_t)getULEB128(addr, end); in getEncodedP()
223 result = get16(addr); in getEncodedP()
225 addr = (pint_t) p; in getEncodedP()
228 result = get32(addr); in getEncodedP()
230 addr = (pint_t) p; in getEncodedP()
233 result = (pint_t)get64(addr); in getEncodedP()
235 addr = (pint_t) p; in getEncodedP()
238 result = (pint_t)getSLEB128(addr, end); in getEncodedP()
242 result = (pint_t)(int16_t)get16(addr); in getEncodedP()
244 addr = (pint_t) p; in getEncodedP()
248 result = (pint_t)(int32_t)get32(addr); in getEncodedP()
250 addr = (pint_t) p; in getEncodedP()
253 result = (pint_t)get64(addr); in getEncodedP()
255 addr = (pint_t) p; in getEncodedP()
313 static inline bool _dyld_find_unwind_sections(void* addr, in _dyld_find_unwind_sections() argument
317 if (!dladdr(addr, &dlinfo)) in _dyld_find_unwind_sections()
443 inline bool LocalAddressSpace::findFunctionName(pint_t addr, char *buf, in findFunctionName() argument
448 if (dladdr((void *)addr, &dyldInfo)) { in findFunctionName()
451 *offset = (addr - (pint_t) dyldInfo.dli_saddr); in findFunctionName()
474 uint8_t get8(pint_t addr);
475 uint16_t get16(pint_t addr);
476 uint32_t get32(pint_t addr);
477 uint64_t get64(pint_t addr);
478 pint_t getP(pint_t addr);
479 uint64_t getULEB128(pint_t &addr, pint_t end);
480 int64_t getSLEB128(pint_t &addr, pint_t end);
481 pint_t getEncodedP(pint_t &addr, pint_t end, uint8_t encoding,
483 bool findFunctionName(pint_t addr, char *buf, size_t bufLen,
488 void *localCopy(pint_t addr);
493 template <typename P> uint8_t OtherAddressSpace<P>::get8(pint_t addr) { in get8() argument
494 return *((uint8_t *)localCopy(addr)); in get8()
497 template <typename P> uint16_t OtherAddressSpace<P>::get16(pint_t addr) { in get16() argument
498 return P::E::get16(*(uint16_t *)localCopy(addr)); in get16()
501 template <typename P> uint32_t OtherAddressSpace<P>::get32(pint_t addr) { in get32() argument
502 return P::E::get32(*(uint32_t *)localCopy(addr)); in get32()
505 template <typename P> uint64_t OtherAddressSpace<P>::get64(pint_t addr) { in get64() argument
506 return P::E::get64(*(uint64_t *)localCopy(addr)); in get64()
510 typename P::uint_t OtherAddressSpace<P>::getP(pint_t addr) { in getP() argument
511 return P::getP(*(uint64_t *)localCopy(addr)); in getP()
515 uint64_t OtherAddressSpace<P>::getULEB128(pint_t &addr, pint_t end) { in getULEB128() argument
516 uintptr_t size = (end - addr); in getULEB128()
517 LocalAddressSpace::pint_t laddr = (LocalAddressSpace::pint_t) localCopy(addr); in getULEB128()
520 addr += (laddr - sladdr); in getULEB128()
525 int64_t OtherAddressSpace<P>::getSLEB128(pint_t &addr, pint_t end) { in getSLEB128() argument
526 uintptr_t size = (end - addr); in getSLEB128()
527 LocalAddressSpace::pint_t laddr = (LocalAddressSpace::pint_t) localCopy(addr); in getSLEB128()
530 addr += (laddr - sladdr); in getSLEB128()
534 template <typename P> void *OtherAddressSpace<P>::localCopy(pint_t addr) { in localCopy() argument
539 bool OtherAddressSpace<P>::findFunctionName(pint_t addr, char *buf, in findFunctionName() argument