forked from OSchip/llvm-project
parent
bf8fe71b91
commit
f174259ec2
|
@ -2740,10 +2740,15 @@ protected:
|
||||||
}
|
}
|
||||||
if (set_pc) {
|
if (set_pc) {
|
||||||
ThreadList &thread_list = process->GetThreadList();
|
ThreadList &thread_list = process->GetThreadList();
|
||||||
ThreadSP curr_thread(thread_list.GetSelectedThread());
|
|
||||||
RegisterContextSP reg_context(
|
RegisterContextSP reg_context(
|
||||||
curr_thread->GetRegisterContext());
|
thread_list.GetSelectedThread()->GetRegisterContext());
|
||||||
reg_context->SetPC(file_entry.GetLoadAddress(target));
|
addr_t file_entry_addr = file_entry.GetLoadAddress(target);
|
||||||
|
if (!reg_context->SetPC(file_entry_addr)) {
|
||||||
|
result.AppendErrorWithFormat("failed to set PC value to "
|
||||||
|
"0x%" PRIx64 "\n",
|
||||||
|
file_entry_addr);
|
||||||
|
result.SetStatus(eReturnStatusFailed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue