[Lldb-commits] [lldb] [lldb][api-test] Add API test for SBCommandInterpreter::CommandOverrideCallback (PR #94518)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 5 12:51:36 PDT 2024
================
@@ -1099,6 +1099,19 @@ static void LLDBSwigPythonCallPythonSBDebuggerTerminateCallback(lldb::user_id_t
}
}
+static bool LLDBSwigPythonCallPythonSBCommandInterpreterSetCommandOverrideCallback(void *baton, const char **argv) {
+ bool b = false;
+ if (baton != Py_None) {
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
+ PyObject *result = PyObject_CallFunction(
+ reinterpret_cast<PyObject *>(baton), const_cast<char *>("s"), argv); // WRONG!!!!!
----------------
medismailben wrote:
You need to convert your `char**` into a `PyList` of `PyString` before passing it here I think
https://github.com/llvm/llvm-project/pull/94518
More information about the lldb-commits
mailing list