Jonas Devlieghere 88591aa0ca
[lldb] Remove lldb-repro utility
Remove lldb-repro which was used to run the test suite against a
reproducer. The corresponding functionality has been removed from LLDB
so there's no need for the tool anymore.
2024-10-31 10:39:48 -07:00

16 lines
478 B
Plaintext

# REQUIRES: python
# RUN: mkdir -p %t
# RUN: cd %t
# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o a.out
# RUN: cat %s | %lldb 2>&1 | FileCheck %s
script -l lua --
target = lldb.debugger:CreateTarget("a.out")
print("target is valid:", tostring(target:IsValid()))
lldb.debugger:SetSelectedTarget(target)
quit
# CHECK: target is valid: true
script -l python --
print("selected target: {}".format(lldb.debugger.GetSelectedTarget()))
# CHECK: selected target: a.out