aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorPedro Tammela <pctammela@gmail.com>2020-11-27 22:29:56 +0000
committerPedro Tammela <pctammela@gmail.com>2020-12-02 11:25:31 +0000
commitd055e3a0eb4e957159b075c0937a960beb75c975 (patch)
treeddb7b83cf8101ac0f0fd2fc716d29040982e2535 /lldb/test/Shell/ScriptInterpreter/Python
parent137a25f04a515e5ea8f24c897e34b4cd236239a8 (diff)
downloadllvm-d055e3a0eb4e957159b075c0937a960beb75c975.zip
llvm-d055e3a0eb4e957159b075c0937a960beb75c975.tar.gz
llvm-d055e3a0eb4e957159b075c0937a960beb75c975.tar.bz2
[LLDB/Python] Fix segfault on Python scripted entrypoints
The code that gets the ScriptInterpreter was not considering the case that it receives a Lua interpreter. Differential Revision: https://reviews.llvm.org/D92249
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
-rw-r--r--lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint_lua.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint_lua.test b/lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint_lua.test
new file mode 100644
index 0000000..c86ae90
--- /dev/null
+++ b/lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint_lua.test
@@ -0,0 +1,8 @@
+# REQUIRES: python
+# UNSUPPORTED: lldb-repro
+#
+# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
+b main
+breakpoint command add -s python -o 'print(frame); return False'
+run
+# CHECK: frame #0