You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
777 B
21 lines
777 B
REQUIRES: python
|
|
RUN: mkdir -p %t
|
|
RUN: %build %p/Inputs/hello.cpp -o %t/target.out
|
|
RUN: %lldb %t/target.out -s %p/Inputs/convenience.in -o quit | FileCheck %s
|
|
|
|
CHECK: stop reason = breakpoint 1.1
|
|
CHECK: script print(lldb.debugger)
|
|
CHECK-NEXT: Debugger (instance: {{.*}}, id: {{[0-9]+}})
|
|
CHECK: script print(lldb.target)
|
|
CHECK-NEXT: target.out
|
|
CHECK: script print(lldb.process)
|
|
CHECK-NEXT: SBProcess: pid = {{[0-9]+}}, state = stopped, threads = {{[0-9]+}}, executable = target.out
|
|
CHECK: script print(lldb.thread.GetStopDescription(100))
|
|
CHECK-NEXT: breakpoint 1.1
|
|
CHECK: script lldb.frame.GetLineEntry().GetLine()
|
|
CHECK-NEXT: 8
|
|
CHECK: script lldb.frame.GetLineEntry().GetFileSpec().GetFilename()
|
|
CHECK-NEXT: hello.c
|
|
CHECK: script lldb.frame.GetFunctionName()
|
|
CHECK-NEXT: main
|