Skip to content

Commit 94ec2e9

Browse files
committed
fix sliding
1 parent 7e4fa29 commit 94ec2e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/source/Symbol/Block.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,10 @@ bool Block::GetRangeContainingAddress(const Address &addr,
248248
const Range *range_ptr = m_ranges.GetEntryAtIndex(idx);
249249
assert(range_ptr);
250250

251-
range.GetBaseAddress() = function->GetAddress();
252-
range.GetBaseAddress().Slide(range_ptr->GetRangeBase());
251+
Address func_addr = function->GetAddress();
252+
range.GetBaseAddress() =
253+
Address(func_addr.GetFileAddress() + range_ptr->GetRangeBase(),
254+
func_addr.GetModule()->GetSectionList());
253255
range.SetByteSize(range_ptr->GetByteSize());
254256
return true;
255257
}

0 commit comments

Comments
 (0)