• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/libunwind-35.3/src/

Lines Matching refs:addr

61 bool _dyld_find_unwind_sections(void* addr, dyld_unwind_sections* info)
67 return p(addr, info);
89 uint8_t get8(pint_t addr) { return *((uint8_t*)addr); }
90 uint16_t get16(pint_t addr) { return *((uint16_t*)addr); }
91 uint32_t get32(pint_t addr) { return *((uint32_t*)addr); }
92 uint64_t get64(pint_t addr) { return *((uint64_t*)addr); }
93 double getDouble(pint_t addr) { return *((double*)addr); }
94 v128 getVector(pint_t addr) { return *((v128*)addr); }
95 uintptr_t getP(pint_t addr);
96 static uint64_t getULEB128(pint_t& addr, pint_t end);
97 static int64_t getSLEB128(pint_t& addr, pint_t end);
99 pint_t getEncodedP(pint_t& addr, pint_t end, uint8_t encoding);
100 bool findFunctionName(pint_t addr, char* buf, size_t bufLen, unw_word_t* offset);
101 bool findUnwindSections(pint_t addr, pint_t& mh, pint_t& dwarfStart, pint_t& dwarfLen, pint_t& compactStart);
107 inline uintptr_t LocalAddressSpace::getP(pint_t addr)
110 return get64(addr);
112 return get32(addr);
118 LocalAddressSpace::getULEB128(pint_t& addr, pint_t end)
120 const uint8_t* p = (uint8_t*)addr;
140 addr = (pint_t)p;
146 LocalAddressSpace::getSLEB128(pint_t& addr, pint_t end)
148 const uint8_t* p = (uint8_t*)addr;
160 addr = (pint_t)p;
165 LocalAddressSpace::getEncodedP(pint_t& addr, pint_t end, uint8_t encoding)
167 pint_t startAddr = addr;
168 const uint8_t* p = (uint8_t*)addr;
174 result = getP(addr);
176 addr = (pint_t)p;
179 result = getULEB128(addr, end);
182 result = get16(addr);
184 addr = (pint_t)p;
187 result = get32(addr);
189 addr = (pint_t)p;
192 result = get64(addr);
194 addr = (pint_t)p;
197 result = getSLEB128(addr, end);
200 result = (int16_t)get16(addr);
202 addr = (pint_t)p;
205 result = (int32_t)get32(addr);
207 addr = (pint_t)p;
210 result = get64(addr);
212 addr = (pint_t)p;
250 inline bool LocalAddressSpace::findUnwindSections(pint_t addr, pint_t& mh, pint_t& dwarfStart, pint_t& dwarfLen, pint_t& compactStart)
253 if ( _dyld_find_unwind_sections((void*)addr, &info) ) {
264 inline bool LocalAddressSpace::findFunctionName(pint_t addr, char* buf, size_t bufLen, unw_word_t* offset)
267 if ( dladdr((void*)addr, &dyldInfo) ) {
270 *offset = (addr - (pint_t)dyldInfo.dli_saddr);
294 uint8_t get8(pint_t addr);
295 uint16_t get16(pint_t addr);
296 uint32_t get32(pint_t addr);
297 uint64_t get64(pint_t addr);
298 pint_t getP(pint_t addr);
299 uint64_t getULEB128(pint_t& addr, pint_t end);
300 int64_t getSLEB128(pint_t& addr, pint_t end);
301 pint_t getEncodedP(pint_t& addr, pint_t end, uint8_t encoding);
302 bool findFunctionName(pint_t addr, char* buf, size_t bufLen, unw_word_t* offset);
303 bool findUnwindSections(pint_t addr, unwind_sections& info);
305 void* localCopy(pint_t addr);
313 uint8_t OtherAddressSpace<P>::get8(pint_t addr)
315 return *((uint8_t*)localCopy(addr));
319 uint16_t OtherAddressSpace<P>::get16(pint_t addr)
321 return P::E::get16(*(uint16_t*)localCopy(addr));
325 uint32_t OtherAddressSpace<P>::get32(pint_t addr)
327 return P::E::get32(*(uint32_t*)localCopy(addr));
331 uint64_t OtherAddressSpace<P>::get64(pint_t addr)
333 return P::E::get64(*(uint64_t*)localCopy(addr));
337 typename P::uint_t OtherAddressSpace<P>::getP(pint_t addr)
339 return P::getP(*(uint64_t*)localCopy(addr));
343 uint64_t OtherAddressSpace<P>::getULEB128(pint_t& addr, pint_t end)
345 uintptr_t size = (end - addr);
346 LocalAddressSpace::pint_t laddr = (LocalAddressSpace::pint_t)localCopy(addr);
349 addr += (laddr-sladdr);
354 int64_t OtherAddressSpace<P>::getSLEB128(pint_t& addr, pint_t end)
356 uintptr_t size = (end - addr);
357 LocalAddressSpace::pint_t laddr = (LocalAddressSpace::pint_t)localCopy(addr);
360 addr += (laddr-sladdr);
365 void* OtherAddressSpace<P>::localCopy(pint_t addr)
371 bool OtherAddressSpace<P>::findFunctionName(pint_t addr, char* buf, size_t bufLen, unw_word_t* offset)