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