summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-12-21 17:28:36 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-12-21 17:35:29 -0800
commit5e32eb1c7a816a1902f6229f7a1f9da92678f451 (patch)
tree96f32fb16ae3b9b3f349c801d93f8c3f245ac033 /lldb/test/Shell/ScriptInterpreter/Python
parent8983d69144d14d6477c377bb91e9c7224e32f753 (diff)
downloadbcm5719-llvm-5e32eb1c7a816a1902f6229f7a1f9da92678f451.tar.gz
bcm5719-llvm-5e32eb1c7a816a1902f6229f7a1f9da92678f451.zip
[lldb/Commands] Honor the scripting language passed
This ensures that breakpoint command honors the scripting language passed with `-s`. Currently the argument ignores the actual language and only uses it to differentiate between lldb and script commands.
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
-rw-r--r--lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint.test b/lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint.test
new file mode 100644
index 00000000000..c49124a22bf
--- /dev/null
+++ b/lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint.test
@@ -0,0 +1,11 @@
+# REQUIRES: python
+#
+# Test that the scripting language argument to "breakpoint command" is honored
+# even if the global scripting language is different.
+#
+# RUN: cat %s | %lldb --script-language none 2>&1 | FileCheck %s
+b main
+breakpoint command add -s python
+print("foo")
+DONE
+# CHECK: Enter your Python command(s). Type 'DONE' to end.
OpenPOWER on IntegriCloud