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();
34 dbg.HandleCommand("settings set symbols.enable-external-lookup false");
36 "settings set plugin.process.gdb-remote.packet-timeout 60");
40 throw Exception("invalid debugger");
41 vector<string> args(argv + 1, argv + argc);
44 } catch (Exception &e) {
45 cout << "ERROR: " << e.what() << endl;
49 SBDebugger::Destroy(dbg);