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