this patch addresses several issues with "command script" subcommands:
 a) adds a new --synchronicity (-s) setting 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)
 b) clears up several error messages
 c) adds a new --allow-reload (-r) setting for "command script import" that allows the user to reload a module even if it has already been imported before
 d) allows filename completion for "command script import" (much like what happens for "target create")
 e) prevents "command script add" from replacing built-in commands with scripted commands
 f) changes AddUserCommand() to take an std::string instead of a const char* (for performance reasons)
plus, it fixes an issue in "type summary add" command handling which caused several test suite errors

llvm-svn: 144035
diff --git a/lldb/test/functionalities/command_script/welcome.py b/lldb/test/functionalities/command_script/welcome.py
index 3b63c70..29bbbc4 100644
--- a/lldb/test/functionalities/command_script/welcome.py
+++ b/lldb/test/functionalities/command_script/welcome.py
@@ -24,4 +24,11 @@
     print 'Still doing long task..';
     time.sleep(1)
     result.PutCString('Done; if you saw the delays I am doing OK')
-    return None
\ No newline at end of file
+    return None
+
+def check_for_synchro(debugger, args, result, dict):
+    if debugger.GetAsync() == True:
+        result.PutCString('I am running async')
+    if debugger.GetAsync() == False:
+        result.PutCString('I am running sync')
+    return None