<table><tr><td style="">qi437103 created this revision.<br />qi437103 added a reviewer: apol.<br />Restricted Application added a subscriber: kdevelop-devel.</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/D2175" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>There are 4 signals used for various output from the debugger:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">applicationOutput: emitted when got stream record from the 'target' channel</li>
<li class="remarkup-list-item">userCommandOutput: emitted when got stream record from the 'console' channel and it's a user command</li>
<li class="remarkup-list-item">internalCommandOutput: emitted when got stream record from the 'console' channel and it's not a user command</li>
<li class="remarkup-list-item">internalOutput: emitted when got stream record from the 'log' channel or stderr from the debugger</li>
</ul>

<p>And there are 2 output toolviews when debugging.</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">The normal Debug Output panel controled by MIDebugJob<ul class="remarkup-list">
<li class="remarkup-list-item">Shows applicationOutput, via MIDebugSession::inferiorOutputLines</li>
<li class="remarkup-list-item">Shows internalCommandOutput, via MIDebugSession::debuggerInternalCommandOutput</li>
</ul></li>
<li class="remarkup-list-item">The GDBOutputWidget which is part of the GDB plugin<ul class="remarkup-list">
<li class="remarkup-list-item">Shows userCommandOutput, via MIDebugSession::debuggerUserCommandOutput</li>
<li class="remarkup-list-item">Shows internalCommandOutput, via MIDebugSession::debuggerInternalCommandOutput</li>
<li class="remarkup-list-item">Shows internalOutput, via MIDebugSession::debuggerInternalOutput</li>
</ul></li>
</ul>

<p>This should match the old behavior for toolviews and fixes the testStdOut unit test.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>gdb unit tests</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKDEVELOP KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>cleanup-dbgoutput-signal</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2175" rel="noreferrer">https://phabricator.kde.org/D2175</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>debuggers/common/midebugger.cpp<br />
debuggers/common/midebugger.h<br />
debuggers/common/midebugjobs.cpp<br />
debuggers/common/midebugsession.cpp<br />
debuggers/common/midebugsession.h<br />
debuggers/gdb/gdboutputwidget.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>qi437103, apol<br /><strong>Cc: </strong>kdevelop-devel<br /></div>