Patch for scripted commands

Hi all,
attached is a patch that adds a new --synchronicity (-s) option for “command script add” that allows the user to decide if scripted commands should run synchronously or asynchronously (which can make a difference in how events are handled - this was discussed last week on the mailing list)

this also provides some changes to other “command script” features:

a) clears up several error messages
b) adds a new --allow-reload (-r) option for “command script import” that allows the user to reload a module even if it has already been imported before
c) allows filename completion for “command script import” (much like what happens for “target create”)
d) prevents “command script add” from replacing built-in commands with scripted commands

plus, it fixes an issue in the “type summary add” command which caused several test suite errors

Thanks,

  • Enrico Granata

synchro.diff (30.4 KB)

That looks good to me.

Jim

Sending include/lldb/Interpreter/CommandInterpreter.h
Sending include/lldb/Interpreter/ScriptInterpreter.h
Sending include/lldb/Interpreter/ScriptInterpreterPython.h
Sending include/lldb/lldb-enumerations.h
Sending include/lldb/lldb-private-enumerations.h
Sending source/Commands/CommandObjectCommands.cpp
Sending source/Commands/CommandObjectType.cpp
Sending source/Interpreter/CommandInterpreter.cpp
Sending source/Interpreter/CommandObject.cpp
Sending source/Interpreter/ScriptInterpreterPython.cpp
Sending test/functionalities/command_script/TestCommandScript.py
Sending test/functionalities/command_script/import/TestImport.py
Sending test/functionalities/command_script/main.cpp
Adding test/functionalities/command_script/mysto.py
Sending test/functionalities/command_script/py_import
Sending test/functionalities/command_script/welcome.py
Transmitting file data …
Committed revision 144035.

Thanks,

  • Enrico Granata