Fixes: debugging external apps

just treat it the same as internal apps as far as gdbengine is
concerned.
This commit is contained in:
Oswald Buddenhagen
2009-02-16 13:41:57 +01:00
committed by hjk
parent 2cb3536a3c
commit 32ff5cf9ee

View File

@@ -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());
sendCommand("-file-exec-and-symbols " + fileName, GdbFileExecAndSymbols);
//sendCommand("file " + fileName, GdbFileExecAndSymbols);
@@ -1602,20 +1604,6 @@ bool GdbEngine::startDebugger()
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);
// set all to "pending"