Lines Matching refs:memory

121 static uintptr_t get_exception_handler(const memory_t* memory,
131 if (memory->tid < 0) {
156 if (!try_get_word(memory, entry, &entry_prel_pc)) {
168 if (!try_get_word(memory, next_entry, &next_entry_prel_pc)) {
181 if (!try_get_word(memory, entry_handler_ptr, &entry_handler)) {
210 static bool try_next_byte(const memory_t* memory, byte_stream_t* stream, uint8_t* out_value) {
214 if (!try_get_word(memory, stream->ptr, &stream->word)) {
244 static bool try_pop_registers(const memory_t* memory, unwind_state_t* state, uint32_t mask) {
250 if (!try_get_word(memory, sp, &value)) {
279 static bool execute_personality_routine(const memory_t* memory,
289 if (!try_next_byte(memory, stream, &size_byte)) {
302 if (!try_next_byte(memory, stream, &op)) {
313 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
319 if (!try_pop_registers(memory, state, mask)) {
341 if (!try_pop_registers(memory, state, mask)) {
347 if (!try_pop_registers(memory, state, mask)) {
355 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
360 if (!try_pop_registers(memory, state, op2)) {
373 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
383 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
396 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
402 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
416 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
423 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
441 static bool try_get_half_word(const memory_t* memory, uint32_t pc, uint16_t* out_value) {
443 if (try_get_word(memory, pc & ~2, &word)) {
450 uintptr_t rewind_pc_arch(const memory_t* memory, uintptr_t pc) {
471 if (try_get_half_word(memory, pc - 5, &prev1)
473 && try_get_half_word(memory, pc - 3, &prev2)
486 static ssize_t unwind_backtrace_common(const memory_t* memory,
494 uintptr_t pc = index ? rewind_pc_arch(memory, state->gregs[R_PC])
502 uintptr_t handler = get_exception_handler(memory, map_info_list, pc);
519 if (!try_next_byte(memory, &stream, &pr)) {
530 if (!execute_personality_routine(memory, state, &stream, pr & 0x0f)) {
549 add_backtrace_entry(rewind_pc_arch(memory, state->gregs[R_LR]),
579 memory_t memory;
580 init_memory(&memory, map_info_list);
581 return unwind_backtrace_common(&memory, map_info_list, &state,
597 memory_t memory;
598 init_memory_ptrace(&memory, tid);
599 return unwind_backtrace_common(&memory, context->map_info_list, &state,