We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4fa29 commit 94ec2e9Copy full SHA for 94ec2e9
lldb/source/Symbol/Block.cpp
@@ -248,8 +248,10 @@ bool Block::GetRangeContainingAddress(const Address &addr,
248
const Range *range_ptr = m_ranges.GetEntryAtIndex(idx);
249
assert(range_ptr);
250
251
- range.GetBaseAddress() = function->GetAddress();
252
- range.GetBaseAddress().Slide(range_ptr->GetRangeBase());
+ Address func_addr = function->GetAddress();
+ range.GetBaseAddress() =
253
+ Address(func_addr.GetFileAddress() + range_ptr->GetRangeBase(),
254
+ func_addr.GetModule()->GetSectionList());
255
range.SetByteSize(range_ptr->GetByteSize());
256
return true;
257
}
0 commit comments