diff options
author | Jim Ingham <jingham@apple.com> | 2022-12-08 17:23:04 -0800 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2022-12-09 10:58:15 -0800 |
commit | 9c5877f33d9f7fd317c07920fd24a041ad69077a (patch) | |
tree | 9c11c1699d34a44ffa4880d64f92746530631be4 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
parent | ef4635452f3a23ee29f7586148e19e8c84471a59 (diff) | |
download | llvm-9c5877f33d9f7fd317c07920fd24a041ad69077a.zip llvm-9c5877f33d9f7fd317c07920fd24a041ad69077a.tar.gz llvm-9c5877f33d9f7fd317c07920fd24a041ad69077a.tar.bz2 |
Switch the "command script add" interactive input to use the new command form.
We're suggesting people use the form of the command that takes an exe_ctx - it
is both more convenient and more correct - since you should not be using
GetSelected{Target, Process, etc.} in commands.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 2 |
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 810c779..117a057 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -1369,7 +1369,7 @@ bool ScriptInterpreterPythonImpl::GenerateScriptAliasFunction( std::string auto_generated_function_name(GenerateUniqueName( "lldb_autogen_python_cmd_alias_func", num_created_functions)); - sstr.Printf("def %s (debugger, args, result, internal_dict):", + sstr.Printf("def %s (debugger, args, exe_ctx, result, internal_dict):", auto_generated_function_name.c_str()); if (!GenerateFunction(sstr.GetData(), user_input).Success()) |