diff --git a/src/plugins/debugger/gdb/remotegdbadapter.cpp b/src/plugins/debugger/gdb/remotegdbadapter.cpp index a8347ac3390..6b6e70b9c35 100644 --- a/src/plugins/debugger/gdb/remotegdbadapter.cpp +++ b/src/plugins/debugger/gdb/remotegdbadapter.cpp @@ -74,7 +74,9 @@ void RemoteGdbAdapter::startAdapter() gdbArgs.prepend(_("mi")); gdbArgs.prepend(_("-i")); - QString location = theDebuggerStringSetting(GdbLocation); + QString location = startParameters().debuggerCommand; + if (location.isEmpty()) + location = theDebuggerStringSetting(GdbLocation); // FIXME: make asynchroneous // Start the remote server