The build.py script always runs the compiler in C++ mode, regardless of the file extension. This results in mangled names presented to the linker which in turn cannot find the printf symbol. While we figure out how to solve this issue I've turned the source file into a cpp file and added extern c. This should unbreak the bots. llvm-svn: 349642
22 lines
771 B
Plaintext
22 lines
771 B
Plaintext
RUN: %build %p/Inputs/hello.cpp -o %t
|
|
RUN: %lldb %t -s %p/Inputs/convenience.in -o quit | FileCheck %s
|
|
|
|
script print(lldb.debugger)
|
|
|
|
CHECK: stop reason = breakpoint 1.1
|
|
CHECK: Debugger (instance: {{.*}}, id: {{[0-9]+}})
|
|
CHECK: script print(lldb.target)
|
|
CHECK: TestConvenienceVariables.test
|
|
CHECK: script print(lldb.process)
|
|
CHECK: SBProcess: pid = {{[0-9]+}},
|
|
CHECK-SAME: state = stopped,
|
|
CHECK-SAME: threads = {{[0-9]+}},
|
|
CHECK-SAME: executable = TestConvenienceVariables.test
|
|
CHECK: script print(lldb.thread.GetStopDescription(100))
|
|
CHECK: breakpoint 1.1
|
|
CHECK: script lldb.frame.GetLineEntry().GetLine()
|
|
CHECK: 8
|
|
CHECK: script lldb.frame.GetLineEntry().GetFileSpec().GetFilename()
|
|
CHECK: hello.c
|
|
CHECK: script lldb.frame.GetFunctionName()
|
|
CHECK: main |