Revert "[lldb] Fix SWIG wrapper compilation error"
...and "[lldb/Interpreter] Introduce `ScriptedStopHook{,Python}Interface` & make use of it (#105449)"
This reverts commit 76b827bb4d, and commit 1e131ddfa8
because the first commit caused the test command-stop-hook-output.test to fail.
This commit is contained in:
1 parent
413b12a5ab
commit
801046e330
21 files changed
+221
-298
No files matched your search
@@ -159,23 +159,4 @@ ScriptedPythonInterface::ExtractValueFromPythonObject<
|
||||
return m_interpreter.GetOpaqueTypeFromSBMemoryRegionInfo(*sb_mem_reg_info);
|
||||
}
|
||||
|
||||
template <>
|
||||
lldb::ExecutionContextRefSP
|
||||
ScriptedPythonInterface::ExtractValueFromPythonObject<
|
||||
lldb::ExecutionContextRefSP>(python::PythonObject &p, Status &error) {
|
||||
|
||||
lldb::SBExecutionContext *sb_exe_ctx =
|
||||
reinterpret_cast<lldb::SBExecutionContext *>(
|
||||
python::LLDBSWIGPython_CastPyObjectToSBExecutionContext(p.get()));
|
||||
|
||||
if (!sb_exe_ctx) {
|
||||
error = Status::FromErrorStringWithFormat(
|
||||
"Couldn't cast lldb::SBExecutionContext to "
|
||||
"lldb::ExecutionContextRefSP.");
|
||||
return {};
|
||||
}
|
||||
|
||||
return m_interpreter.GetOpaqueTypeFromSBExecutionContext(*sb_exe_ctx);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user