<table><tr><td style="">sitter created this revision.<br />sitter added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />sitter 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/D22401">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>previously we'd duplicate 'codeNames' of debuggers.</p>

<p>so, if I had <tt style="background: #ebebeb; font-size: 13px;">CodeName=gdb</tt> in both <tt style="background: #ebebeb; font-size: 13px;">bin/debugger/internal/gdbrc</tt> and<br />
also <tt style="background: #ebebeb; font-size: 13px;">XDG_*/debugger/internal/gdbrc</tt> it'd effectively include both in the<br />
list. and it was more or less undefined which one would get used.<br />
with the revised lookup code we'll now always have unique CodeNames (e.g.<br />
gdb will only appear once in the candidate list) and by preferring bin/<br />
we can now put "fake" debuggers into $builddir/bin/ to force them getting<br />
used over potentially system-wide debuggers. the latter is particularly<br />
handy when testing since you can now fixate the gdb debugger to ultimately<br />
be nothing more than <tt style="background: #ebebeb; font-size: 13px;">cat /sometracefile</tt> but rely on all the same code<br />
paths as an actual gdb run would</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>builds and I can dump fake debuggers into my build dir</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R871 DrKonqi</div></div></div><br /><div><strong>BRANCH</strong><div><div>debugger-load-override</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22401">https://phabricator.kde.org/D22401</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/debugger.cpp</div></div></div><br /><div><strong>To: </strong>sitter, Plasma<br /><strong>Cc: </strong>plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>