/// LLDB C API Test Driver #include #include #include #include #include #include "lldb-headers.h" #include "common.h" using namespace std; using namespace lldb; void test(SBDebugger &dbg, std::vector args); int main(int argc, char** argv) { int code = 0; SBDebugger::Initialize(); SBDebugger dbg = SBDebugger::Create(); try { if (!dbg.IsValid()) throw Exception("invalid debugger"); vector args(argv + 1, argv + argc); test(dbg, args); } catch (Exception &e) { cout << "ERROR: " << e.what() << endl; code = 1; } SBDebugger::Destroy(dbg); return code; }