1REQUIRES: python
2RUN: %build %p/Inputs/hello.cpp -o %t
3RUN: %lldb %t -s %p/Inputs/convenience.in -o quit | FileCheck %s
4
5script print(lldb.debugger)
6
7CHECK: stop reason = breakpoint 1.1
8CHECK: Debugger (instance: {{.*}}, id: {{[0-9]+}})
9CHECK: script print(lldb.target)
10CHECK: TestConvenienceVariables.test
11CHECK: script print(lldb.process)
12CHECK: SBProcess: pid = {{[0-9]+}},
13CHECK-SAME:       state = stopped,
14CHECK-SAME:       threads = {{[0-9]+}},
15CHECK-SAME:       executable = TestConvenienceVariables.test
16CHECK: script print(lldb.thread.GetStopDescription(100))
17CHECK: breakpoint 1.1
18CHECK: script lldb.frame.GetLineEntry().GetLine()
19CHECK: 8
20CHECK: script lldb.frame.GetLineEntry().GetFileSpec().GetFilename()
21CHECK: hello.c
22CHECK: script lldb.frame.GetFunctionName()
23CHECK: main
24