diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index f2d323c69ba..152bf8702a3 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -4623,8 +4623,10 @@ void GdbEngine::runEngine() claimInitialBreakpoints(); notifyEngineRunAndInferiorStopOk(); - - runCommand({"target remote " + extractRemoteChannel(rp.remoteChannel(), rp.remoteChannelPipe())}); + // in case of vxworks target remote is already set by commandsAfterConnect + if (!rp.debugger().command.executable().contains("gdb_bin")) + runCommand({"target remote " + extractRemoteChannel(rp.remoteChannel(), + rp.remoteChannelPipe())}); } else if (runParameters().isLocalAttachEngine()) {