Debugger: allow user commands after attaching to a remote target

Change-Id: I365f34a8ddc6d895bb3fcb09bd991b24108d922b
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-10-23 10:51:32 +02:00
parent 19e9277394
commit 38f9169ef5
4 changed files with 33 additions and 2 deletions

View File

@@ -282,6 +282,11 @@ void GdbRemoteServerEngine::handleTargetRemote(const GdbResponse &record)
// gdb server will stop the remote application itself.
showMessage(_("INFERIOR STARTED"));
showMessage(msgAttachedToStoppedInferior(), StatusBar);
QString postAttachCommands = debuggerCore()->stringSetting(GdbPostAttachCommands);
if (!postAttachCommands.isEmpty()) {
foreach (const QString &cmd, postAttachCommands.split(QLatin1Char('\n')))
postCommand(cmd.toLatin1());
}
handleInferiorPrepared();
} else {
// 16^error,msg="hd:5555: Connection timed out."