Maemo: Fix remote debugging via gdbserver.

Also document remote gdbserver adapter's signal.
This commit is contained in:
Christian Kandeler
2010-09-08 10:09:28 +02:00
parent 15fc9396b5
commit 7544e75360
2 changed files with 9 additions and 0 deletions

View File

@@ -65,6 +65,14 @@ private:
AbstractGdbProcess *gdbProc() { return &m_gdbProc; } AbstractGdbProcess *gdbProc() { return &m_gdbProc; }
signals: signals:
/*
* For "external" clients of a debugger run control that need to do
* further setup before the debugger is started (e.g. Maemo).
* Afterwards, handleSetupDone() or handleSetupFailed() must be called
* to continue or abort debugging, respectively.
* This signal is only emitted if the start parameters indicate that
* a server start script should be used, but none is given.
*/
void requestSetup(); void requestSetup();
private: private:

View File

@@ -84,6 +84,7 @@ RunControl *MaemoDebugSupport::createDebugRunControl(MaemoRunConfiguration *runC
params.debuggerCommand = runConfig->gdbCmd(); params.debuggerCommand = runConfig->gdbCmd();
params.remoteChannel = devConf.server.host + QLatin1Char(':') params.remoteChannel = devConf.server.host + QLatin1Char(':')
+ QString::number(gdbServerPort(runConfig)); + QString::number(gdbServerPort(runConfig));
params.useServerStartScript = true;
params.remoteArchitecture = QLatin1String("arm"); params.remoteArchitecture = QLatin1String("arm");
} }
params.processArgs = runConfig->arguments(); params.processArgs = runConfig->arguments();