[Lldb-commits] [lldb] [lldb][api-test] Add API test for SBCommandInterpreter::CommandOverrideCallback (PR #94518)
Chelsea Cassanova via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 5 13:22:48 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!!!!!
----------------
chelcassanova wrote:
Yes, forgot to do this here when I cleaned this up and you can see the comment from that 😅
https://github.com/llvm/llvm-project/pull/94518
More information about the lldb-commits
mailing list