[API] Extend the SBThreadPlan interface

Summary:
This patch extends the `SBThreadPlan` to allow retrieving of thread plans
for scripted steps.

Reviewers: labath, zturner, jingham

Reviewed By: jingham

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D53361

llvm-svn: 345247
This commit is contained in:
Aleksandr Urakov
2018-10-25 08:27:42 +00:00
parent b4b6ec01c6
commit c1c0fac765
7 changed files with 108 additions and 0 deletions

View File

@@ -207,3 +207,13 @@ SBThreadPlan::QueueThreadPlanForRunToAddress(SBAddress sb_address) {
return SBThreadPlan();
}
}
SBThreadPlan
SBThreadPlan::QueueThreadPlanForStepScripted(const char *script_class_name) {
if (m_opaque_sp) {
return SBThreadPlan(m_opaque_sp->GetThread().QueueThreadPlanForStepScripted(
false, script_class_name, false));
} else {
return SBThreadPlan();
}
}