diff options
| author | Pedro Tammela <pctammela@gmail.com> | 2020-11-27 22:29:56 +0000 |
|---|---|---|
| committer | Pedro Tammela <pctammela@gmail.com> | 2020-12-02 11:25:31 +0000 |
| commit | d055e3a0eb4e957159b075c0937a960beb75c975 (patch) | |
| tree | ddb7b83cf8101ac0f0fd2fc716d29040982e2535 /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | 137a25f04a515e5ea8f24c897e34b4cd236239a8 (diff) | |
| download | llvm-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.test | 8 |
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 |
