<table><tr><td style="">rjvbb created this revision.<br />rjvbb added reviewers: kde-frameworks-devel, Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />rjvbb 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/D22460">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Since a few versions lldb has had a tendency to remain stuck after the initial connection to the crashed application (on Mac). On Linux it would often exit cleanly and quickly in a way not foreseen by my previous code, causing DrKonqi to report an unexpected debugger termination.</p>

<p>This patch addresses both issues:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">recent lldb versions have no more problems with reading commands from a batchfile</li>
<li class="remarkup-list-item">this make it possible to add an explicit exit command</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">slotProcessExited()</tt> is called explicitly when lldb has confirmed the exit command</li>
<li class="remarkup-list-item">errors caused by terminating or killing the debugger process are now ignored.</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><p>Getting a crash backtrace now works as expected on Mac and Linux. No regressions are introduced when using the gdb backend on Linux.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R871 DrKonqi</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22460">https://phabricator.kde.org/D22460</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/backtracegenerator.cpp<br />
src/backtracegenerator.h<br />
src/data/debuggers/internal/lldbrc</div></div></div><br /><div><strong>To: </strong>rjvbb, kde-frameworks-devel, Plasma<br /><strong>Cc: </strong>plasma-devel, kde-mac, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>