Enable connection of Debuggers to DrKonqi

Authored by croick on Mar 6 2018, 10:06 PM.

Description

Enable connection of Debuggers to DrKonqi

Summary:

  • allows each debugger plugin of each active session to be selected for process attachment in DrKonqi
  • adds callbacks for end of debugging and closing of the plugin
  • removes QSignalMapper dependence
  • uses "obsolete" QDBusConnectionInterface::serviceOwnerChanged due to lack of alternatives

Test Plan:

  • apply DrKonqi patch D10195 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

Reviewers: KDevelop, mwolff

Reviewed By: KDevelop, mwolff

Subscribers: apol, mwolff, kdevelop-devel

Differential Revision: https://phabricator.kde.org/D10196

Details

Committed
croickMar 6 2018, 10:07 PM
Reviewer
KDevelop
Differential Revision
D10196: Enable connection of Debuggers to DrKonqi
Parents
R32:da69b2e01b34: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown