Commit 32ff5cf9 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen Committed by hjk
Browse files

Fixes: debugging external apps

just treat it the same as internal apps as far as gdbengine is
concerned.
parent 2cb3536a
......@@ -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"
......
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