Changeset View
Changeset View
Standalone View
Standalone View
debuggers/gdb/gdbconfigpage.cpp
Show All 40 Lines | |||||
41 | #include <project/builderjob.h> | 41 | #include <project/builderjob.h> | ||
42 | #include <interfaces/iuicontroller.h> | 42 | #include <interfaces/iuicontroller.h> | ||
43 | #include <project/interfaces/ibuildsystemmanager.h> | 43 | #include <project/interfaces/ibuildsystemmanager.h> | ||
44 | #include <util/executecompositejob.h> | 44 | #include <util/executecompositejob.h> | ||
45 | #include <execute/iexecuteplugin.h> | 45 | #include <execute/iexecuteplugin.h> | ||
46 | 46 | | |||
47 | #include "debugsession.h" | 47 | #include "debugsession.h" | ||
48 | #include "debuggerplugin.h" | 48 | #include "debuggerplugin.h" | ||
49 | #include "midebugjobs.h" | ||||
49 | 50 | | |||
50 | #include "ui_gdbconfigpage.h" | 51 | #include "ui_gdbconfigpage.h" | ||
51 | #include <interfaces/iplugincontroller.h> | 52 | #include <interfaces/iplugincontroller.h> | ||
52 | #include <interfaces/icore.h> | 53 | #include <interfaces/icore.h> | ||
53 | #include "debugjob.h" | | |||
54 | 54 | | |||
55 | using namespace KDevelop; | 55 | using namespace KDevelop; | ||
56 | 56 | | |||
57 | GdbConfigPage::GdbConfigPage( QWidget* parent ) | 57 | GdbConfigPage::GdbConfigPage( QWidget* parent ) | ||
58 | : LaunchConfigurationPage(parent), ui( new Ui::GdbConfigPage ) | 58 | : LaunchConfigurationPage(parent), ui( new Ui::GdbConfigPage ) | ||
59 | { | 59 | { | ||
60 | ui->setupUi( this ); | 60 | ui->setupUi( this ); | ||
61 | ui->kcfg_gdbPath->setMode(KFile::File|KFile::ExistingOnly|KFile::LocalOnly); | 61 | ui->kcfg_gdbPath->setMode(KFile::File|KFile::ExistingOnly|KFile::LocalOnly); | ||
▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 150 | { | |||
160 | } | 160 | } | ||
161 | 161 | | |||
162 | QList<KJob*> l; | 162 | QList<KJob*> l; | ||
163 | KJob* depjob = m_execute->dependencyJob(cfg); | 163 | KJob* depjob = m_execute->dependencyJob(cfg); | ||
164 | if( depjob ) | 164 | if( depjob ) | ||
165 | { | 165 | { | ||
166 | l << depjob; | 166 | l << depjob; | ||
167 | } | 167 | } | ||
168 | l << new KDevMI::GDB::DebugJob( m_plugin, cfg, m_execute ); | 168 | l << new KDevMI::MIDebugJob( m_plugin, cfg, m_execute ); | ||
169 | return new KDevelop::ExecuteCompositeJob( KDevelop::ICore::self()->runController(), l ); | 169 | return new KDevelop::ExecuteCompositeJob( KDevelop::ICore::self()->runController(), l ); | ||
170 | } | 170 | } | ||
171 | qWarning() << "Unknown launch mode" << launchMode << "for config:" << cfg->name(); | 171 | qWarning() << "Unknown launch mode" << launchMode << "for config:" << cfg->name(); | ||
172 | return 0; | 172 | return 0; | ||
173 | } | 173 | } | ||
174 | 174 | | |||
175 | QStringList GdbLauncher::supportedModes() const | 175 | QStringList GdbLauncher::supportedModes() const | ||
176 | { | 176 | { | ||
Show All 15 Lines |