Lines Matching refs:cache

1096   struct i386_frame_cache *cache;  in i386_alloc_frame_cache()  local
1099 cache = FRAME_OBSTACK_ZALLOC (struct i386_frame_cache); in i386_alloc_frame_cache()
1102 cache->base_p = 0; in i386_alloc_frame_cache()
1103 cache->base = 0; in i386_alloc_frame_cache()
1104 cache->sp_offset = -4; in i386_alloc_frame_cache()
1105 cache->pc = 0; in i386_alloc_frame_cache()
1110 cache->saved_regs[i] = -1; in i386_alloc_frame_cache()
1111 cache->saved_sp = 0; in i386_alloc_frame_cache()
1112 cache->saved_sp_reg = -1; in i386_alloc_frame_cache()
1113 cache->pc_in_eax = 0; in i386_alloc_frame_cache()
1116 cache->locals = -1; in i386_alloc_frame_cache()
1118 return cache; in i386_alloc_frame_cache()
1181 struct i386_frame_cache *cache) in i386_analyze_struct_return() argument
1215 cache->sp_offset += 4; in i386_analyze_struct_return()
1221 cache->pc_in_eax = 1; in i386_analyze_struct_return()
1280 struct i386_frame_cache *cache) in i386_analyze_stack_align() argument
1384 cache->saved_sp_reg = regnums[reg]; in i386_analyze_stack_align()
1600 struct i386_frame_cache *cache) in i386_analyze_frame_setup() argument
1617 cache->saved_regs[I386_EBP_REGNUM] = 0; in i386_analyze_frame_setup()
1618 cache->sp_offset += 4; in i386_analyze_frame_setup()
1692 cache->locals = 0; in i386_analyze_frame_setup()
1717 cache->locals = read_code_integer (pc + 2, 1, byte_order); in i386_analyze_frame_setup()
1728 cache->locals = read_code_integer (pc + 2, 4, byte_order); in i386_analyze_frame_setup()
1737 cache->locals = -1 * read_code_integer (pc + 3, 1, byte_order); in i386_analyze_frame_setup()
1748 cache->locals = read_code_unsigned_integer (pc + 1, 2, byte_order); in i386_analyze_frame_setup()
1762 struct i386_frame_cache *cache) in i386_analyze_register_saves() argument
1768 if (cache->locals > 0) in i386_analyze_register_saves()
1769 offset -= cache->locals; in i386_analyze_register_saves()
1778 cache->saved_regs[op - 0x50] = offset; in i386_analyze_register_saves()
1779 cache->sp_offset += 4; in i386_analyze_register_saves()
1816 struct i386_frame_cache *cache) in i386_analyze_prologue() argument
1820 pc = i386_analyze_struct_return (pc, current_pc, cache); in i386_analyze_prologue()
1822 pc = i386_analyze_stack_align (pc, current_pc, cache); in i386_analyze_prologue()
1823 pc = i386_analyze_frame_setup (gdbarch, pc, current_pc, cache); in i386_analyze_prologue()
1824 return i386_analyze_register_saves (pc, current_pc, cache); in i386_analyze_prologue()
1839 struct i386_frame_cache cache; in i386_skip_prologue() local
1861 cache.locals = -1; in i386_skip_prologue()
1862 pc = i386_analyze_prologue (gdbarch, start_pc, 0xffffffff, &cache); in i386_skip_prologue()
1863 if (cache.locals < 0) in i386_skip_prologue()
1980 struct i386_frame_cache *cache) in i386_frame_cache_1() argument
1987 cache->pc = get_frame_func (this_frame); in i386_frame_cache_1()
1999 cache->base = extract_unsigned_integer (buf, 4, byte_order); in i386_frame_cache_1()
2000 if (cache->base == 0) in i386_frame_cache_1()
2002 cache->base_p = 1; in i386_frame_cache_1()
2007 cache->saved_regs[I386_EIP_REGNUM] = 4; in i386_frame_cache_1()
2009 if (cache->pc != 0) in i386_frame_cache_1()
2010 i386_analyze_prologue (gdbarch, cache->pc, get_frame_pc (this_frame), in i386_frame_cache_1()
2011 cache); in i386_frame_cache_1()
2013 if (cache->locals < 0) in i386_frame_cache_1()
2023 if (cache->saved_sp_reg != -1) in i386_frame_cache_1()
2026 get_frame_register (this_frame, cache->saved_sp_reg, buf); in i386_frame_cache_1()
2027 cache->saved_sp = extract_unsigned_integer (buf, 4, byte_order); in i386_frame_cache_1()
2030 cache->base = ((cache->saved_sp - 4) & 0xfffffff0) - 4; in i386_frame_cache_1()
2031 cache->saved_regs[I386_EIP_REGNUM] = cache->saved_sp - 4; in i386_frame_cache_1()
2034 cache->saved_regs[I386_EIP_REGNUM] -= cache->base; in i386_frame_cache_1()
2036 else if (cache->pc != 0 in i386_frame_cache_1()
2045 cache->base = extract_unsigned_integer (buf, 4, byte_order) in i386_frame_cache_1()
2046 + cache->sp_offset; in i386_frame_cache_1()
2053 cache->saved_regs[I386_EBP_REGNUM] = 0; in i386_frame_cache_1()
2056 if (cache->saved_sp_reg != -1) in i386_frame_cache_1()
2060 if (cache->saved_sp == 0 in i386_frame_cache_1()
2062 cache->saved_sp_reg, buf)) in i386_frame_cache_1()
2063 cache->saved_sp = extract_unsigned_integer (buf, 4, byte_order); in i386_frame_cache_1()
2067 else if (cache->saved_sp == 0) in i386_frame_cache_1()
2068 cache->saved_sp = cache->base + 8; in i386_frame_cache_1()
2073 if (cache->saved_regs[i] != -1) in i386_frame_cache_1()
2074 cache->saved_regs[i] += cache->base; in i386_frame_cache_1()
2076 cache->base_p = 1; in i386_frame_cache_1()
2082 struct i386_frame_cache *cache; in i386_frame_cache() local
2087 cache = i386_alloc_frame_cache (); in i386_frame_cache()
2088 *this_cache = cache; in i386_frame_cache()
2092 i386_frame_cache_1 (this_frame, cache); in i386_frame_cache()
2100 return cache; in i386_frame_cache()
2107 struct i386_frame_cache *cache = i386_frame_cache (this_frame, this_cache); in i386_frame_this_id() local
2109 if (!cache->base_p) in i386_frame_this_id()
2110 (*this_id) = frame_id_build_unavailable_stack (cache->pc); in i386_frame_this_id()
2111 else if (cache->base == 0) in i386_frame_this_id()
2118 (*this_id) = frame_id_build (cache->base + 8, cache->pc); in i386_frame_this_id()
2126 struct i386_frame_cache *cache = i386_frame_cache (this_frame, this_cache); in i386_frame_unwind_stop_reason() local
2128 if (!cache->base_p) in i386_frame_unwind_stop_reason()
2132 if (cache->base == 0) in i386_frame_unwind_stop_reason()
2142 struct i386_frame_cache *cache = i386_frame_cache (this_frame, this_cache); in i386_frame_prev_register() local
2174 if (regnum == I386_EIP_REGNUM && cache->pc_in_eax) in i386_frame_prev_register()
2178 && (cache->saved_sp != 0 || cache->saved_sp_reg != -1)) in i386_frame_prev_register()
2183 if (cache->saved_sp == 0) in i386_frame_prev_register()
2185 cache->saved_sp_reg); in i386_frame_prev_register()
2188 cache->saved_sp); in i386_frame_prev_register()
2191 if (regnum < I386_NUM_SAVED_REGS && cache->saved_regs[regnum] != -1) in i386_frame_prev_register()
2193 cache->saved_regs[regnum]); in i386_frame_prev_register()
2250 struct i386_frame_cache *cache; in i386_epilogue_frame_cache() local
2256 cache = i386_alloc_frame_cache (); in i386_epilogue_frame_cache()
2257 *this_cache = cache; in i386_epilogue_frame_cache()
2261 cache->pc = get_frame_func (this_frame); in i386_epilogue_frame_cache()
2267 cache->base = sp + cache->sp_offset; in i386_epilogue_frame_cache()
2268 cache->saved_sp = cache->base + 8; in i386_epilogue_frame_cache()
2269 cache->saved_regs[I386_EIP_REGNUM] = cache->base + 4; in i386_epilogue_frame_cache()
2271 cache->base_p = 1; in i386_epilogue_frame_cache()
2279 return cache; in i386_epilogue_frame_cache()
2286 struct i386_frame_cache *cache = in i386_epilogue_frame_unwind_stop_reason() local
2289 if (!cache->base_p) in i386_epilogue_frame_unwind_stop_reason()
2300 struct i386_frame_cache *cache = in i386_epilogue_frame_this_id() local
2303 if (!cache->base_p) in i386_epilogue_frame_this_id()
2304 (*this_id) = frame_id_build_unavailable_stack (cache->pc); in i386_epilogue_frame_this_id()
2306 (*this_id) = frame_id_build (cache->base + 8, cache->pc); in i386_epilogue_frame_this_id()
2435 struct i386_frame_cache *cache; in i386_sigtramp_frame_cache() local
2442 cache = i386_alloc_frame_cache (); in i386_sigtramp_frame_cache()
2447 cache->base = extract_unsigned_integer (buf, 4, byte_order) - 4; in i386_sigtramp_frame_cache()
2458 cache->saved_regs[i] = addr + tdep->sc_reg_offset[i]; in i386_sigtramp_frame_cache()
2462 cache->saved_regs[I386_EIP_REGNUM] = addr + tdep->sc_pc_offset; in i386_sigtramp_frame_cache()
2463 cache->saved_regs[I386_ESP_REGNUM] = addr + tdep->sc_sp_offset; in i386_sigtramp_frame_cache()
2466 cache->base_p = 1; in i386_sigtramp_frame_cache()
2474 *this_cache = cache; in i386_sigtramp_frame_cache()
2475 return cache; in i386_sigtramp_frame_cache()
2482 struct i386_frame_cache *cache = in i386_sigtramp_frame_unwind_stop_reason() local
2485 if (!cache->base_p) in i386_sigtramp_frame_unwind_stop_reason()
2495 struct i386_frame_cache *cache = in i386_sigtramp_frame_this_id() local
2498 if (!cache->base_p) in i386_sigtramp_frame_this_id()
2503 (*this_id) = frame_id_build (cache->base + 8, get_frame_pc (this_frame)); in i386_sigtramp_frame_this_id()
2561 struct i386_frame_cache *cache = i386_frame_cache (this_frame, this_cache); in i386_frame_base_address() local
2563 return cache->base; in i386_frame_base_address()