bool GdbDebuggerPlugin::load(LiteApi::IApplication *app) { LiteApi::IDebuggerManager *manager = LiteApi::getDebugManager(app); if (!manager) { return false; } GdbDebugger *debug = new GdbDebugger(app); manager->addDebugger(debug); manager->setCurrentDebugger(debug); app->optionManager()->addFactory(new GdbDebuggerOptionFactory(app,this)); return true; }
bool GdbDebuggerPlugin::initWithApp(LiteApi::IApplication *app) { if (!LiteApi::IPlugin::initWithApp(app)) { return false; } LiteApi::IDebuggerManager *manager = LiteApi::findExtensionObject<LiteApi::IDebuggerManager*>(app,"LiteApi.IDebugManager"); if (!manager) { return false; } GdbDebugeer *debug = new GdbDebugeer(app); manager->addDebugger(debug); manager->setCurrentDebugger(debug); return true; }