aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/gdb/remotegdbserveradapter.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2016-04-21 14:59:00 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2016-04-21 13:14:49 +0000
commitcba8763f552ba4e0b77200fc9f0200d7dc68ce7e (patch)
tree1193f238584389214808c5760096b2420e06a89e /src/plugins/debugger/gdb/remotegdbserveradapter.cpp
parent396538dd36f79227f5152ae303916b6a50a514dc (diff)
Debugger: Fix decision between exec-run and continue.
In the remote gdb adapter. Change-Id: I6f0d9a8d7198aac4d79bb6643ce67428350f1920 Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/gdb/remotegdbserveradapter.cpp')
-rw-r--r--src/plugins/debugger/gdb/remotegdbserveradapter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp
index 97f342aeaf..739973fd70 100644
--- a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp
+++ b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp
@@ -404,12 +404,11 @@ void GdbRemoteServerEngine::runEngine()
{
QTC_ASSERT(state() == EngineRunRequested, qDebug() << state());
- const QString remoteExecutable = runParameters().inferior.executable;
- if (!remoteExecutable.isEmpty()) {
- runCommand({"-exec-run", RunRequest, CB(handleExecRun)});
- } else {
+ if (runParameters().useContinueInsteadOfRun) {
notifyEngineRunAndInferiorStopOk();
continueInferiorInternal();
+ } else {
+ runCommand({"-exec-run", RunRequest, CB(handleExecRun)});
}
}