virtual bool DoExecute (lldb::SBDebugger debugger, char** arguments, lldb::SBCommandReturnObject &result) { if (arguments) { int argc = 0; char **argv = arguments; for (const char* arg = *arguments; arg; arg = *(++arguments)) { ++argc; } int exitcode = corerun((const int)argc, (const char**)argv); if (exitcode != 0) { result.SetError("corerun failed"); } } return result.Succeeded(); }
int main(const int argc, const char* argv[]) { return corerun(argc, argv); }