Home
last modified time | relevance | path

Searched refs:rel_pc (Results 1 – 15 of 15) sorted by relevance

/system/unwinding/libunwindstack/
DUnwinder.cpp65 frame->rel_pc = dex_pc - frame->map_info->start(); in FillInDexFrame()
70 frame->rel_pc = dex_pc; in FillInDexFrame()
88 FrameData* Unwinder::FillInFrame(std::shared_ptr<MapInfo>& map_info, Elf* /*elf*/, uint64_t rel_pc, in FillInFrame() argument
95 frame->rel_pc = rel_pc - pc_adjustment; in FillInFrame()
145 uint64_t rel_pc; in Unwind() local
150 rel_pc = step_pc; in Unwind()
167 rel_pc = elf->GetRelPc(step_pc, map_info.get()); in Unwind()
170 step_pc = rel_pc; in Unwind()
173 pc_adjustment = GetPcAdjustment(rel_pc, elf, arch_); in Unwind()
207 frame = FillInFrame(map_info, elf, rel_pc, pc_adjustment); in Unwind()
[all …]
DRegs.cpp175 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf, ArchEnum arch) { in GetPcAdjustment() argument
183 if (rel_pc < load_bias) { in GetPcAdjustment()
184 if (rel_pc < 2) { in GetPcAdjustment()
189 uint64_t adjusted_rel_pc = rel_pc - load_bias; in GetPcAdjustment()
209 if (rel_pc < 4) { in GetPcAdjustment()
216 if (rel_pc == 0) { in GetPcAdjustment()
DElf.cpp184 bool Elf::StepIfSignalHandler(uint64_t rel_pc, Regs* regs, Memory* process_memory) { in StepIfSignalHandler() argument
190 if (rel_pc < static_cast<uint64_t>(load_bias_)) { in StepIfSignalHandler()
193 return regs->StepIfSignalHandler(rel_pc - load_bias_, this, process_memory); in StepIfSignalHandler()
197 bool Elf::Step(uint64_t rel_pc, Regs* regs, Memory* process_memory, bool* finished, in Step() argument
205 return interface_->Step(rel_pc, regs, process_memory, finished, is_signal_frame); in Step()
/system/unwinding/libunwindstack/tests/
DVerifyBionicTerminationTest.cpp51 static DwarfLocationEnum GetReturnAddressLocation(uint64_t rel_pc, DwarfSection* section) { in GetReturnAddressLocation() argument
56 const DwarfFde* fde = section->GetFdeFromPc(rel_pc); in GetReturnAddressLocation()
61 if (!section->GetCfaLocationInfo(rel_pc, fde, &regs, ARCH_UNKNOWN)) { in GetReturnAddressLocation()
86 DwarfLocationEnum location = GetReturnAddressLocation(frame.rel_pc, interface->debug_frame()); in VerifyReturnAddress()
91 location = GetReturnAddressLocation(frame.rel_pc, interface->eh_frame()); in VerifyReturnAddress()
DUnwinderTest.cpp216 EXPECT_EQ(0U, frame->rel_pc); in TEST_F()
233 EXPECT_EQ(0x100U, frame->rel_pc); in TEST_F()
250 EXPECT_EQ(0x200U, frame->rel_pc); in TEST_F()
287 EXPECT_EQ(0U, frame->rel_pc); in TEST_F()
304 EXPECT_EQ(0x100U, frame->rel_pc); in TEST_F()
321 EXPECT_EQ(0x200U, frame->rel_pc); in TEST_F()
353 EXPECT_EQ(0x5500U, frame->rel_pc); in TEST_F()
385 EXPECT_EQ(0x8500U, frame->rel_pc); in TEST_F()
417 EXPECT_EQ(0U, frame->rel_pc); in TEST_F()
456 EXPECT_EQ(0U, frame->rel_pc); in TEST_F()
[all …]
DAndroidUnwinderTest.cpp289 ASSERT_EQ(frame_context.rel_pc, frame_reg.rel_pc); in TEST_F()
DRegsTest.cpp99 TEST_F(RegsTest, rel_pc) { in TEST_F() argument
DElfTest.cpp279 TEST_F(ElfTest, rel_pc) { in TEST_F() argument
/system/unwinding/libunwindstack/include/unwindstack/
DElf.h57 bool StepIfSignalHandler(uint64_t rel_pc, Regs* regs, Memory* process_memory);
59 bool Step(uint64_t rel_pc, Regs* regs, Memory* process_memory, bool* finished,
DUnwinder.h44 uint64_t rel_pc; member
136 FrameData* FillInFrame(std::shared_ptr<MapInfo>& map_info, Elf* elf, uint64_t rel_pc,
DRegs.h119 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf, ArchEnum arch);
DElfInterface.h97 virtual bool Step(uint64_t rel_pc, Regs* regs, Memory* process_memory, bool* finished,
/system/core/debuggerd/proto/
Dtombstone.proto160 uint64 rel_pc = 1; field
/system/core/debuggerd/libdebuggerd/
Dtombstone_proto_to_text.cpp222 frame.rel_pc(), frame.file_name().c_str()); in print_backtrace()
Dtombstone_proto.cpp371 f->set_rel_pc(frame.rel_pc); in fill_in_backtrace_frame()