diff options
author | Orgad Shaneh <[email protected]> | 2017-10-01 10:19:44 +0300 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2017-10-04 14:04:07 +0000 |
commit | 674b4296db3484318f5118cdd4d4e606eae9b8f6 (patch) | |
tree | 6eac7b3ac6295c5ae2777e27ed042fa1771bde1a /src/plugins/debugger/debuggerplugin.cpp | |
parent | 1f73fb1402b4662034df61b68fd1ccbd29670e1c (diff) |
Debugger: Always set executable from user arguments
It is required also for coredump, attch to remote etc.
Change-Id: I99bdcf860fc7c4ffd7918213a121b56977bec19d
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 5e378ac20c0..dc3595a8c81 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1180,6 +1180,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, auto runControl = new RunControl(nullptr, ProjectExplorer::Constants::DEBUG_RUN_MODE); auto debugger = new DebuggerRunTool(runControl, kit); + debugger->setInferiorExecutable(executable); if (pid) { debugger->setStartMode(AttachExternal); debugger->setCloseMode(DetachAtClose); @@ -1199,7 +1200,6 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, debugger->setStartMessage(tr("Attaching to core file %1.").arg(coreFile)); } else { debugger->setStartMode(StartExternal); - debugger->setInferiorExecutable(executable); debugger->setRunControlName(tr("Executable file \"%1\"").arg(executable)); debugger->setStartMessage(tr("Debugging file %1.").arg(executable)); } |