[Lldb-commits] [PATCH] D53361: [API] Extend the `SBThreadPlan` interface
Aleksandr Urakov via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 17 02:46:08 PDT 2018
aleksandr.urakov created this revision.
aleksandr.urakov added reviewers: labath, zturner, jingham.
aleksandr.urakov added a project: LLDB.
Herald added a subscriber: lldb-commits.
This patch extends the `SBThreadPlan` to allow retrieving of thread plans for scripted steps.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D53361
Files:
include/lldb/API/SBThreadPlan.h
scripts/interface/SBThreadPlan.i
source/API/SBThreadPlan.cpp
Index: source/API/SBThreadPlan.cpp
===================================================================
--- source/API/SBThreadPlan.cpp
+++ source/API/SBThreadPlan.cpp
@@ -207,3 +207,13 @@
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();
+ }
+}
Index: scripts/interface/SBThreadPlan.i
===================================================================
--- scripts/interface/SBThreadPlan.i
+++ scripts/interface/SBThreadPlan.i
@@ -106,6 +106,9 @@
SBThreadPlan
QueueThreadPlanForRunToAddress (SBAddress address);
+ SBThreadPlan
+ QueueThreadPlanForStepScripted(const char *script_class_name);
+
protected:
friend class SBBreakpoint;
Index: include/lldb/API/SBThreadPlan.h
===================================================================
--- include/lldb/API/SBThreadPlan.h
+++ include/lldb/API/SBThreadPlan.h
@@ -88,6 +88,8 @@
SBThreadPlan QueueThreadPlanForRunToAddress(SBAddress address);
+ SBThreadPlan QueueThreadPlanForStepScripted(const char *script_class_name);
+
#ifndef SWIG
lldb_private::ThreadPlan *get();
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53361.169974.patch
Type: text/x-patch
Size: 1335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20181017/d9e8195a/attachment-0001.bin>
More information about the lldb-commits
mailing list