You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
45c971f7ee
The Python script interpreter makes the current debugger, target, process, thread and frame available to interactive scripting sessions through convenience variables. This patch does the same for Lua. Differential revision: https://reviews.llvm.org/D71801
13 lines
474 B
Plaintext
13 lines
474 B
Plaintext
# REQUIRES: lua
|
|
# RUN: mkdir -p %t
|
|
# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t/foo
|
|
# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t/bar
|
|
# RUN: %lldb --script-language lua -o "file %t/bar" -o "file %t/foo" -s %S/Inputs/nested_sessions.in -s %S/Inputs/nested_sessions_2.in 2>&1 | FileCheck %s
|
|
# CHECK: script
|
|
# CHECK-NEXT: foo foo
|
|
# CHECK-NEXT: foo bar
|
|
# CHECK-NEXT: foo bar
|
|
# CHECK-NEXT: foo bar
|
|
# CHECK: script
|
|
# CHECK-NEXT: bar bar
|