1# REQUIRES: lua 2# REQUIRES: python 3# UNSUPPORTED: lldb-repro 4 5# RUN: mkdir -p %t 6# RUN: cd %t 7# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o a.out 8# RUN: cat %s | %lldb 2>&1 | FileCheck %s 9script -l lua -- 10target = lldb.debugger:CreateTarget("a.out") 11print("target is valid:", tostring(target:IsValid())) 12lldb.debugger:SetSelectedTarget(target) 13quit 14# CHECK: target is valid: true 15script -l python -- 16print("selected target: {}".format(lldb.debugger.GetSelectedTarget())) 17# CHECK: selected target: a.out 18