Commit df22ae6c authored by hjk's avatar hjk
Browse files

debugger: replace hack to select trk adapter and pass parameters by a new one

Now .pro files can be used as project description as usual. To make the
debugger pick up the "on device" part a magic commandline is needed:
"@sym@ c:\sys\bin\your.exe  /path/to/your.sym"

If the project is not compilable, remove the Make and QMake buildsteps
and add a new Custom step that's only calling /bin/true.
parent cbf0b6f2
...@@ -1475,7 +1475,7 @@ AbstractGdbAdapter *GdbEngine::determineAdapter(const DebuggerStartParametersPtr ...@@ -1475,7 +1475,7 @@ AbstractGdbAdapter *GdbEngine::determineAdapter(const DebuggerStartParametersPtr
break; break;
} }
// @todo: remove testing hack // @todo: remove testing hack
if (sp->executable.endsWith(_(".sym"))) if (sp->processArgs.at(0) == _("@sym@"))
return m_trkAdapter; return m_trkAdapter;
switch (sp->startMode) { switch (sp->startMode) {
case AttachCore: case AttachCore:
......
...@@ -1424,9 +1424,9 @@ void TrkGdbAdapter::startAdapter() ...@@ -1424,9 +1424,9 @@ void TrkGdbAdapter::startAdapter()
m_remoteExecutable = parameters.executable; m_remoteExecutable = parameters.executable;
m_symbolFile = parameters.symbolFileName; m_symbolFile = parameters.symbolFileName;
// FIXME: testing hack, remove! // FIXME: testing hack, remove!
if (m_remoteExecutable.endsWith(_(".sym"))) { if (parameters.processArgs.at(0) == _("@sym@")) {
m_symbolFile = m_remoteExecutable; m_remoteExecutable = parameters.processArgs.at(1);
m_remoteExecutable = parameters.processArgs.join(_(" ")); m_symbolFile = parameters.processArgs.at(2);
} }
// Start // Start
QTC_ASSERT(state() == EngineStarting, qDebug() << state()); QTC_ASSERT(state() == EngineStarting, qDebug() << state());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment