[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    D10195: DrKonqi: Enable DBus-Interface for debugging with KDevelop
From:       Christoph Roick <noreply () phabricator ! kde ! org>
Date:       2018-01-30 22:26:05
Message-ID: 20180130222605.1.60775199A270C97D () phabricator ! kde ! org
[Download RAW message or body]

croick created this revision.
croick added a reviewer: KDevelop.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
croick requested review of this revision.

REVISION SUMMARY
  - register a DBus service to make it work at all
  - service name unique by debuggee pid
  - switch hierarchy of adaptor and launcher
    - a single adaptor keeps track of multiple launchers
    - the debugger should provide a unique identification
  - only works with a corresponding patch in KDevelop

TEST PLAN
  - apply KDevelop patch and start a new KDevelop session "test"
  - enable the DrKonqi debug button
  - enable ptrace
  - start a kde program (kate for instance)
  - start "drkonqi --dialog --appname kate --pid xxxx"
  - check Debug options: gdb, KDevelop (GDB) - test, KDevelop (LLDB) - test
  - start another KDevelop session "test2" -> additional debug options are now available
  - end session "test2" -> additional options vanished again
  - select "KDevelop (GDB) - test" -> KDevelop raises, DrKonqi buttons are disabled
  - use the GDB console to detach the process and end GDB
  - DrKonqi buttons are reenabled again

REPOSITORY
  R871 DrKonqi

BRANCH
  kdevelopdbus

REVISION DETAIL
  https://phabricator.kde.org/D10195

AFFECTED FILES
  src/README
  src/debuggerlaunchers.cpp
  src/debuggerlaunchers.h
  src/debuggermanager.cpp
  src/debuggermanager.h

To: croick, #kdevelop
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart

[Attachment #3 (unknown)]

<table><tr><td style="">croick created this revision.<br />croick added a reviewer: \
KDevelop.<br />Restricted Application added a project: Plasma.<br />Restricted \
Application added a subscriber: plasma-devel.<br />croick 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/D10195" rel="noreferrer">View \
Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><ul \
class="remarkup-list"> <li class="remarkup-list-item">register a DBus service to make \
it work at all</li> <li class="remarkup-list-item">service name unique by debuggee \
pid</li> <li class="remarkup-list-item">switch hierarchy of adaptor and launcher<ul \
class="remarkup-list"> <li class="remarkup-list-item">a single adaptor keeps track of \
multiple launchers</li> <li class="remarkup-list-item">the debugger should provide a \
unique identification</li> </ul></li>
<li class="remarkup-list-item">only works with a corresponding patch in KDevelop</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">apply KDevelop patch and start a new KDevelop session \
&quot;test&quot;</li> <li class="remarkup-list-item">enable the DrKonqi debug \
button</li> <li class="remarkup-list-item">enable ptrace</li>
<li class="remarkup-list-item">start a kde program (kate for instance)</li>
<li class="remarkup-list-item">start &quot;drkonqi --dialog --appname kate --pid \
xxxx&quot;</li> <li class="remarkup-list-item">check Debug options: gdb, KDevelop \
(GDB) - test, KDevelop (LLDB) - test</li> <li class="remarkup-list-item">start \
another KDevelop session &quot;test2&quot; -&gt; additional debug options are now \
available</li> <li class="remarkup-list-item">end session &quot;test2&quot; -&gt; \
additional options vanished again</li> <li class="remarkup-list-item">select \
&quot;KDevelop (GDB) - test&quot; -&gt; KDevelop raises, DrKonqi buttons are \
disabled</li> <li class="remarkup-list-item">use the GDB console to detach the \
process and end GDB</li> <li class="remarkup-list-item">DrKonqi buttons are reenabled \
again</li> </ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R871 \
DrKonqi</div></div></div><br \
/><div><strong>BRANCH</strong><div><div>kdevelopdbus</div></div></div><br \
/><div><strong>REVISION DETAIL</strong><div><a \
href="https://phabricator.kde.org/D10195" \
rel="noreferrer">https://phabricator.kde.org/D10195</a></div></div><br \
/><div><strong>AFFECTED FILES</strong><div><div>src/README<br /> \
src/debuggerlaunchers.cpp<br /> src/debuggerlaunchers.h<br />
src/debuggermanager.cpp<br />
src/debuggermanager.h</div></div></div><br /><div><strong>To: </strong>croick, \
KDevelop<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, \
ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic