Lines Matching refs:cache

703 amd64_init_frame_cache (struct amd64_frame_cache *cache)  in amd64_init_frame_cache()  argument
708 cache->base = 0; in amd64_init_frame_cache()
709 cache->sp_offset = -8; in amd64_init_frame_cache()
710 cache->pc = 0; in amd64_init_frame_cache()
715 cache->saved_regs[i] = -1; in amd64_init_frame_cache()
716 cache->saved_sp = 0; in amd64_init_frame_cache()
719 cache->frameless_p = 1; in amd64_init_frame_cache()
727 struct amd64_frame_cache *cache; in amd64_alloc_frame_cache() local
729 cache = FRAME_OBSTACK_ZALLOC (struct amd64_frame_cache); in amd64_alloc_frame_cache()
730 amd64_init_frame_cache(cache); in amd64_alloc_frame_cache()
732 return cache; in amd64_alloc_frame_cache()
753 struct amd64_frame_cache *cache) in amd64_analyze_prologue() argument
785 cache->saved_regs[AMD64_RBP_REGNUM] = 0; in amd64_analyze_prologue()
786 cache->sp_offset += 8; in amd64_analyze_prologue()
798 cache->frameless_p = 0; in amd64_analyze_prologue()
810 struct amd64_frame_cache cache; in amd64_skip_prologue() local
813 amd64_init_frame_cache (&cache); in amd64_skip_prologue()
814 pc = amd64_analyze_prologue (start_pc, 0xffffffffffffffffLL, &cache); in amd64_skip_prologue()
815 if (cache.frameless_p) in amd64_skip_prologue()
827 struct amd64_frame_cache *cache; in amd64_frame_cache() local
834 cache = amd64_alloc_frame_cache (); in amd64_frame_cache()
835 *this_cache = cache; in amd64_frame_cache()
837 cache->pc = frame_func_unwind (next_frame); in amd64_frame_cache()
838 if (cache->pc != 0) in amd64_frame_cache()
839 amd64_analyze_prologue (cache->pc, frame_pc_unwind (next_frame), cache); in amd64_frame_cache()
841 if (cache->frameless_p) in amd64_frame_cache()
851 cache->base = extract_unsigned_integer (buf, 8) + cache->sp_offset; in amd64_frame_cache()
856 cache->base = extract_unsigned_integer (buf, 8); in amd64_frame_cache()
861 cache->saved_sp = cache->base + 16; in amd64_frame_cache()
866 cache->saved_regs[AMD64_RIP_REGNUM] = 8; in amd64_frame_cache()
871 if (cache->saved_regs[i] != -1) in amd64_frame_cache()
872 cache->saved_regs[i] += cache->base; in amd64_frame_cache()
874 return cache; in amd64_frame_cache()
881 struct amd64_frame_cache *cache = in amd64_frame_this_id() local
885 if (cache->base == 0) in amd64_frame_this_id()
888 (*this_id) = frame_id_build (cache->base + 16, cache->pc); in amd64_frame_this_id()
897 struct amd64_frame_cache *cache = in amd64_frame_prev_register() local
902 if (regnum == SP_REGNUM && cache->saved_sp) in amd64_frame_prev_register()
911 store_unsigned_integer (valuep, 8, cache->saved_sp); in amd64_frame_prev_register()
916 if (regnum < AMD64_NUM_SAVED_REGS && cache->saved_regs[regnum] != -1) in amd64_frame_prev_register()
920 *addrp = cache->saved_regs[regnum]; in amd64_frame_prev_register()
958 struct amd64_frame_cache *cache; in amd64_sigtramp_frame_cache() local
967 cache = amd64_alloc_frame_cache (); in amd64_sigtramp_frame_cache()
970 cache->base = extract_unsigned_integer (buf, 8) - 8; in amd64_sigtramp_frame_cache()
977 cache->saved_regs[i] = addr + tdep->sc_reg_offset[i]; in amd64_sigtramp_frame_cache()
979 *this_cache = cache; in amd64_sigtramp_frame_cache()
980 return cache; in amd64_sigtramp_frame_cache()
987 struct amd64_frame_cache *cache = in amd64_sigtramp_frame_this_id() local
990 (*this_id) = frame_id_build (cache->base + 16, frame_pc_unwind (next_frame)); in amd64_sigtramp_frame_this_id()
1046 struct amd64_frame_cache *cache = in amd64_frame_base_address() local
1049 return cache->base; in amd64_frame_base_address()