[lldb/Interpreter] Make ScriptedInterface Object creation more generic (#68052)
This patch changes the way plugin objects used with Scripted Interfaces are created. Instead of implementing a different SWIG method to create the object for every scripted interface, this patch makes the creation more generic by re-using some of the ScriptedPythonInterface templated Dispatch code. This patch also improves error handling of the object creation by returning an `llvm::Expected`. Signed-off-by: Med Ismail Bennani <ismail@bennani.ma> Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
This commit is contained in:
1 parent
7ce613fc77
commit
f22d82cef2
16 files changed
+161
-153
No files matched your search
@@ -231,14 +231,6 @@ lldb_private::python::SWIGBridge::LLDBSWIGPythonCreateOSPlugin(
|
||||
return python::PythonObject();
|
||||
}
|
||||
|
||||
python::PythonObject
|
||||
lldb_private::python::SWIGBridge::LLDBSwigPythonCreateScriptedObject(
|
||||
const char *python_class_name, const char *session_dictionary_name,
|
||||
lldb::ExecutionContextRefSP exe_ctx_sp, const StructuredDataImpl &args_impl,
|
||||
std::string &error_string) {
|
||||
return python::PythonObject();
|
||||
}
|
||||
|
||||
python::PythonObject
|
||||
lldb_private::python::SWIGBridge::LLDBSWIGPython_CreateFrameRecognizer(
|
||||
const char *python_class_name, const char *session_dictionary_name) {
|
||||
@@ -321,3 +313,13 @@ python::PythonObject
|
||||
lldb_private::python::SWIGBridge::ToSWIGWrapper(lldb::DataExtractorSP) {
|
||||
return python::PythonObject();
|
||||
}
|
||||
|
||||
python::PythonObject
|
||||
lldb_private::python::SWIGBridge::ToSWIGWrapper(lldb::ExecutionContextRefSP) {
|
||||
return python::PythonObject();
|
||||
}
|
||||
|
||||
python::PythonObject
|
||||
lldb_private::python::SWIGBridge::ToSWIGWrapper(const StructuredDataImpl &) {
|
||||
return python::PythonObject();
|
||||
}
|
||||
Reference in new issue
Block a user