forked from qt-creator/qt-creator
Fixes: debugging external apps
just treat it the same as internal apps as far as gdbengine is concerned.
This commit is contained in:
@@ -1588,7 +1588,9 @@ bool GdbEngine::startDebugger()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (q->startMode() == q->startInternal) {
|
if (q->startMode() == q->attachExternal) {
|
||||||
|
sendCommand("attach " + QString::number(q->m_attachedPID));
|
||||||
|
} else {
|
||||||
emit gdbInputAvailable(QString(), QString());
|
emit gdbInputAvailable(QString(), QString());
|
||||||
sendCommand("-file-exec-and-symbols " + fileName, GdbFileExecAndSymbols);
|
sendCommand("-file-exec-and-symbols " + fileName, GdbFileExecAndSymbols);
|
||||||
//sendCommand("file " + fileName, GdbFileExecAndSymbols);
|
//sendCommand("file " + fileName, GdbFileExecAndSymbols);
|
||||||
@@ -1602,20 +1604,6 @@ bool GdbEngine::startDebugger()
|
|||||||
sendCommand("x/2i " + startSymbolName(), GdbStart);
|
sendCommand("x/2i " + startSymbolName(), GdbStart);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (q->startMode() == q->attachExternal) {
|
|
||||||
sendCommand("attach " + QString::number(q->m_attachedPID));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (q->startMode() == q->startExternal) {
|
|
||||||
//sendCommand("-file-exec-and-symbols " + fileName, GdbFileExecAndSymbols);
|
|
||||||
sendCommand("file " + fileName, GdbFileExecAndSymbols);
|
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
sendCommand("sharedlibrary apply-load-rules all");
|
|
||||||
#endif
|
|
||||||
//sendCommand("-file-list-exec-source-files", GdbQuerySources);
|
|
||||||
//sendCommand("-gdb-set stop-on-solib-events 1");
|
|
||||||
}
|
|
||||||
|
|
||||||
sendCommand("-data-list-register-names", RegisterListNames);
|
sendCommand("-data-list-register-names", RegisterListNames);
|
||||||
|
|
||||||
// set all to "pending"
|
// set all to "pending"
|
||||||
|
Reference in New Issue
Block a user