summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/alias/welcome.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/alias/welcome.py')
-rw-r--r--lldb/test/functionalities/alias/welcome.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/test/functionalities/alias/welcome.py b/lldb/test/functionalities/alias/welcome.py
new file mode 100644
index 00000000000..6754851c833
--- /dev/null
+++ b/lldb/test/functionalities/alias/welcome.py
@@ -0,0 +1,14 @@
+import sys
+
+def welcome_impl(debugger, args, stream, dict):
+ stream.Printf('Hello ' + args + ', welcome to LLDB');
+ return None;
+
+def target_name_impl(debugger, args, stream, dict):
+ target = debugger.GetSelectedTarget()
+ file = target.GetExecutable()
+ stream.Printf('Current target ' + file.GetFilename())
+ if args == 'fail':
+ return 'a test for error in command'
+ else:
+ return None \ No newline at end of file
OpenPOWER on IntegriCloud