@@ -4968,12 +4968,12 @@ PythonObject lldb_private::python::SWIGBridge::LLDBSwigPythonCreateScriptedThrea
4968
4968
}
4969
4969
4970
4970
bool lldb_private::python::SWIGBridge::LLDBSWIGPythonCallThreadPlan(
4971
- void *implementor , const char *method_name, lldb_private::Event *event,
4971
+ void *implementer , const char *method_name, lldb_private::Event *event,
4972
4972
bool &got_error) {
4973
4973
got_error = false;
4974
4974
4975
4975
PyErr_Cleaner py_err_cleaner(false);
4976
- PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor ));
4976
+ PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementer ));
4977
4977
auto pfunc = self.ResolveName<PythonCallable>(method_name);
4978
4978
4979
4979
if (!pfunc.IsAllocated())
@@ -5006,12 +5006,12 @@ bool lldb_private::python::SWIGBridge::LLDBSWIGPythonCallThreadPlan(
5006
5006
}
5007
5007
5008
5008
bool lldb_private::python::SWIGBridge::LLDBSWIGPythonCallThreadPlan(
5009
- void *implementor , const char *method_name, lldb_private::Stream *stream,
5009
+ void *implementer , const char *method_name, lldb_private::Stream *stream,
5010
5010
bool &got_error) {
5011
5011
got_error = false;
5012
5012
5013
5013
PyErr_Cleaner py_err_cleaner(false);
5014
- PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor ));
5014
+ PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementer ));
5015
5015
auto pfunc = self.ResolveName<PythonCallable>(method_name);
5016
5016
5017
5017
if (!pfunc.IsAllocated())
@@ -5512,6 +5512,29 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallCommandObject(
5512
5512
return true;
5513
5513
}
5514
5514
5515
+ #include "lldb/Interpreter/CommandReturnObject.h"
5516
+
5517
+ bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallParsedCommandObject(
5518
+ PyObject *implementor, lldb::DebuggerSP debugger, lldb_private::StructuredDataImpl &args_impl,
5519
+ lldb_private::CommandReturnObject &cmd_retobj,
5520
+ lldb::ExecutionContextRefSP exe_ctx_ref_sp) {
5521
+
5522
+ PyErr_Cleaner py_err_cleaner(true);
5523
+
5524
+ PythonObject self(PyRefType::Borrowed, implementor);
5525
+ auto pfunc = self.ResolveName<PythonCallable>("__call__");
5526
+
5527
+ if (!pfunc.IsAllocated()) {
5528
+ cmd_retobj.AppendError("Could not find '__call__' method in implementation class");
5529
+ return false;
5530
+ }
5531
+
5532
+ pfunc(SWIGBridge::ToSWIGWrapper(std::move(debugger)), SWIGBridge::ToSWIGWrapper(args_impl),
5533
+ SWIGBridge::ToSWIGWrapper(exe_ctx_ref_sp), SWIGBridge::ToSWIGWrapper(cmd_retobj).obj());
5534
+
5535
+ return true;
5536
+ }
5537
+
5515
5538
PythonObject lldb_private::python::SWIGBridge::LLDBSWIGPythonCreateOSPlugin(
5516
5539
const char *python_class_name, const char *session_dictionary_name,
5517
5540
const lldb::ProcessSP &process_sp) {
0 commit comments