[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
This commit is contained in:
Pedro Tammela
2020-11-27 22:29:56 +00:00
parent 137a25f04a
commit d055e3a0eb
2 changed files with 27 additions and 18 deletions

View File

@@ -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