[lldb/Plugin] Add artificial stackframe loading in ScriptedThread
This patch adds the ability for ScriptedThread to load artificial stack frames. To do so, the interpreter instance can create a list that will contain the frame index and its pc address. Then, when the Scripted Process plugin stops, it will refresh its Scripted Threads state by invalidating their register context and load to list from the interpreter object and reconstruct each frame. This patch also removes all of the default implementation for `get_stackframes` from the derived ScriptedThread classes, and add the interface code for the Scripted Thread Interface. rdar://88721095 Differential Revision: https://reviews.llvm.org/D119388 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
This commit is contained in:
1 parent
c30742ba73
commit
7066584491
12 files changed
+102
-49
No files matched your search
@@ -34,6 +34,14 @@ ScriptedPythonInterface::GetStatusFromMethod(llvm::StringRef method_name) {
|
||||
return error;
|
||||
}
|
||||
|
||||
template <>
|
||||
StructuredData::ArraySP
|
||||
ScriptedPythonInterface::ExtractValueFromPythonObject<StructuredData::ArraySP>(
|
||||
python::PythonObject &p, Status &error) {
|
||||
python::PythonList result_list(python::PyRefType::Borrowed, p.get());
|
||||
return result_list.CreateStructuredArray();
|
||||
}
|
||||
|
||||
template <>
|
||||
StructuredData::DictionarySP
|
||||
ScriptedPythonInterface::ExtractValueFromPythonObject<
|
||||
|
||||
Reference in new issue
Block a user