forked from OSchip/llvm-project
parent
b0b1ea36e7
commit
16d3fd8ba1
|
@ -802,10 +802,12 @@ IRExecutionUnit::FindInSymbols(const std::vector<IRExecutionUnit::SearchSpec> &s
|
|||
load_address = candidate_sc.symbol->ResolveCallableAddress(*target);
|
||||
|
||||
if (load_address == LLDB_INVALID_ADDRESS)
|
||||
{
|
||||
if (target->GetProcessSP())
|
||||
load_address = candidate_sc.symbol->GetAddress().GetLoadAddress(target);
|
||||
else
|
||||
load_address = candidate_sc.symbol->GetAddress().GetFileAddress();
|
||||
}
|
||||
|
||||
if (load_address != LLDB_INVALID_ADDRESS)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue