From e4f24ab53fc19e61a480e9a1ddab6c08cfdb937c Mon Sep 17 00:00:00 2001 From: ck <qt-info@nokia.com> Date: Mon, 19 Oct 2009 10:20:00 +0200 Subject: [PATCH] Remote debugging: Choose the right debugger. --- src/plugins/debugger/gdb/remotegdbadapter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- GitLab