Switch the "command script add" interactive input to use the new command form.
authorJim Ingham <jingham@apple.com>
Fri, 9 Dec 2022 01:23:04 +0000 (17:23 -0800)
committerJim Ingham <jingham@apple.com>
Fri, 9 Dec 2022 18:58:15 +0000 (10:58 -0800)
commit9c5877f33d9f7fd317c07920fd24a041ad69077a
tree9c11c1699d34a44ffa4880d64f92746530631be4
parentef4635452f3a23ee29f7586148e19e8c84471a59
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.
lldb/source/Commands/CommandObjectCommands.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
lldb/test/Shell/Commands/command-script-add.test [new file with mode: 0644]