aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorjimingham <jingham@apple.com>2024-02-28 17:26:29 -0800
committerGitHub <noreply@github.com>2024-02-28 17:26:29 -0800
commit5784bf85bc5143266565586ece0113cd773a8616 (patch)
treee83b65428f390997f5ac9cc4634e836ec0d95d95 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent0fe4b9dae81695dd44c3392e52e1454864a9c001 (diff)
downloadllvm-5784bf85bc5143266565586ece0113cd773a8616.zip
llvm-5784bf85bc5143266565586ece0113cd773a8616.tar.gz
llvm-5784bf85bc5143266565586ece0113cd773a8616.tar.bz2
Fix interactive use of "command script add". (#83350)
There was a think-o in a previous commit that made us only able to define 1 line commands when using command script add interactively. There was also no test for this feature, so I fixed the think-o and added a test.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
index a1ad3f5..ce52f35 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
@@ -1417,7 +1417,7 @@ bool ScriptInterpreterPythonImpl::GenerateScriptAliasFunction(
sstr.Printf("def %s (debugger, args, exe_ctx, result, internal_dict):",
auto_generated_function_name.c_str());
- if (!GenerateFunction(sstr.GetData(), user_input, /*is_callback=*/true)
+ if (!GenerateFunction(sstr.GetData(), user_input, /*is_callback=*/false)
.Success())
return false;