mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
Use eAddressClassCode for address lookup for opcodes for stack frames
It is required because of the following edge case on arm: bx <addr> Non-tail call in a no return function [data-pool] Marked with $d mapping symbol The return address of the function call will point to the data pool but we have to treat it as code so the StackFrame can calculate the symbols correctly. Differential revision: http://reviews.llvm.org/D12556 llvm-svn: 246958
This commit is contained in:
@@ -362,8 +362,8 @@ StackFrameList::GetFramesUpTo(uint32_t end_idx)
|
||||
// adjustment it will point to an other section. In that case resolve the
|
||||
// address again to the correct section plus offset form.
|
||||
TargetSP target = m_thread.CalculateTarget();
|
||||
addr_t load_addr = curr_frame_address.GetOpcodeLoadAddress(target.get());
|
||||
curr_frame_address.SetOpcodeLoadAddress(load_addr - 1, target.get());
|
||||
addr_t load_addr = curr_frame_address.GetOpcodeLoadAddress(target.get(), eAddressClassCode);
|
||||
curr_frame_address.SetOpcodeLoadAddress(load_addr - 1, target.get(), eAddressClassCode);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user