Debugger: Enable attaching with -client option.
Make it possible to trigger a debug-attach in a running instance
of Qt Creator by means of -client, use that in qtcdebugger, thus
enabling it to attaching to crashing executables in run mode
(Windows/CDB).
Modify IPlugin and application so that the complete command line is
serialized and transmitted to a running instance via QtSingleApplication
if -client is specified. Introduce IPlugin::remoteArgument and use that
in core for opening files and in the debugger for attaching.
Use -client in qtcdebugger with some logic to keep it alive as long as
the debuggee, make CDB break in that case as the events are not replayed
correctly in case the debugger is not spawned by the registered handler.
Rubber-stamped-by:
con <qtc-committer@nokia.com>
Showing
- src/app/main.cpp 10 additions, 38 deletionssrc/app/main.cpp
- src/libs/extensionsystem/iplugin.h 1 addition, 0 deletionssrc/libs/extensionsystem/iplugin.h
- src/libs/extensionsystem/pluginmanager.cpp 85 additions, 0 deletionssrc/libs/extensionsystem/pluginmanager.cpp
- src/libs/extensionsystem/pluginmanager.h 6 additions, 0 deletionssrc/libs/extensionsystem/pluginmanager.h
- src/plugins/coreplugin/coreplugin.cpp 8 additions, 9 deletionssrc/plugins/coreplugin/coreplugin.cpp
- src/plugins/coreplugin/coreplugin.h 2 additions, 1 deletionsrc/plugins/coreplugin/coreplugin.h
- src/plugins/debugger/cdb/cdbdebugengine.cpp 18 additions, 1 deletionsrc/plugins/debugger/cdb/cdbdebugengine.cpp
- src/plugins/debugger/cdb/cdbdebugengine.h 1 addition, 0 deletionssrc/plugins/debugger/cdb/cdbdebugengine.h
- src/plugins/debugger/debuggerplugin.cpp 56 additions, 34 deletionssrc/plugins/debugger/debuggerplugin.cpp
- src/plugins/debugger/debuggerplugin.h 13 additions, 11 deletionssrc/plugins/debugger/debuggerplugin.h
- src/tools/qtcdebugger/main.cpp 38 additions, 7 deletionssrc/tools/qtcdebugger/main.cpp
Loading
Please register or sign in to comment