forked from qt-creator/qt-creator
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.
This commit is contained in:
@@ -1424,9 +1424,9 @@ void TrkGdbAdapter::startAdapter()
|
||||
m_remoteExecutable = parameters.executable;
|
||||
m_symbolFile = parameters.symbolFileName;
|
||||
// FIXME: testing hack, remove!
|
||||
if (m_remoteExecutable.endsWith(_(".sym"))) {
|
||||
m_symbolFile = m_remoteExecutable;
|
||||
m_remoteExecutable = parameters.processArgs.join(_(" "));
|
||||
if (parameters.processArgs.at(0) == _("@sym@")) {
|
||||
m_remoteExecutable = parameters.processArgs.at(1);
|
||||
m_symbolFile = parameters.processArgs.at(2);
|
||||
}
|
||||
// Start
|
||||
QTC_ASSERT(state() == EngineStarting, qDebug() << state());
|
||||
|
||||
Reference in New Issue
Block a user