diff --git a/src/plugins/debugger/gdb/remotegdbadapter.cpp b/src/plugins/debugger/gdb/remotegdbadapter.cpp index a8347ac33909da4f4d3d1fc2f35d7381c49e075c..6b6e70b9c3585b4ea4d759082fe31db513f61a65 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