<table><tr><td style="">igorkushnir created this revision.<br />Herald added a project: KDevelop.<br />Herald added a subscriber: kdevelop-devel.<br />igorkushnir requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D18325">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Rename Qt logging category: common -> debuggercommon</p>

<p>The old name was too generic and undescriptive. This resulted in<br />
the following confusing lines in KDevelop output:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">kdevelop.plugins.common: Change session  QObject(0x0)
kdevelop.plugins.common: Will reparse arch</pre></div>

<p>MIDebugger: print a specific process error message</p>

<p>Information in the messageboxes is general and sometimes insufficient<br />
to understand why the process could not be started. In such cases<br />
a warning-level error message can be useful. For example:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">Debugger ERRORED QProcess::FailedToStart "execvp: Exec format error"
Debugger ERRORED QProcess::WriteError "Error writing to process"</pre></div>

<p>GdbDebugger: pass correct string in userCommandOutput()</p>

<p>When Shell script was not empty, both the shell path and the debugger<br />
executable were duplicated in the string sent to userCommandOutput()<br />
because they are prepended to arguments in if(!shell.isEmpty()) branch.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Run test_gdb, test_gdbprinters, test_lldb and test_lldbformatters.<br />
The number of failed and skipped tests did not change with these fixes.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>debugger-plugin-fixes</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18325">https://phabricator.kde.org/D18325</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/debuggercommon/CMakeLists.txt<br />
plugins/debuggercommon/midebugger.cpp<br />
plugins/gdb/gdb.cpp</div></div></div><br /><div><strong>To: </strong>igorkushnir<br /><strong>Cc: </strong>kdevelop-devel, glebaccon, hase, antismap, iodelay, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>