2 /// LLDB C API Test Driver
20 void test(SBDebugger &dbg, std::vector<string> args);
22 int main(int argc, char** argv) {
24 // Ignore SIGPIPE. The lldb driver does this as well,
25 // because we seem to get spurious SIGPIPES on some
26 // Unixen that take the driver down.
27 #if !defined(_MSC_VER)
28 signal(SIGPIPE, SIG_IGN);
32 SBDebugger::Initialize();
33 SBDebugger dbg = SBDebugger::Create();
37 throw Exception("invalid debugger");
38 vector<string> args(argv + 1, argv + argc);
41 } catch (Exception &e) {
42 cout << "ERROR: " << e.what() << endl;
46 SBDebugger::Destroy(dbg);