| /// LLDB C API Test Driver |
| void test(SBDebugger &dbg, std::vector<string> args); |
| int main(int argc, char** argv) { |
| // Ignore SIGPIPE. The lldb driver does this as well, |
| // because we seem to get spurious SIGPIPES on some |
| // Unixen that take the driver down. |
| signal(SIGPIPE, SIG_IGN); |
| SBDebugger::Initialize(); |
| SBDebugger dbg = SBDebugger::Create(); |
| dbg.HandleCommand("settings set symbols.enable-external-lookup false"); |
| throw Exception("invalid debugger"); |
| vector<string> args(argv + 1, argv + argc); |
| cout << "ERROR: " << e.what() << endl; |
| SBDebugger::Destroy(dbg); |