forked from qt-creator/qt-creator
Start on dumper support for CDB, bug fixes.
Make command execution output shown, use Wide version of Debug Callbacks and output, provide bases classes for other output and event handlers, move common dumper functionality into debugger manager.
This commit is contained in:
@@ -105,6 +105,18 @@ private:
|
||||
QString m_result;
|
||||
};
|
||||
|
||||
// Utility class to temporarily redirect output to another handler
|
||||
// as long as in scope
|
||||
class OutputRedirector {
|
||||
Q_DISABLE_COPY(OutputRedirector)
|
||||
public:
|
||||
explicit OutputRedirector(IDebugClient5 *client, IDebugOutputCallbacksWide *newHandler);
|
||||
~OutputRedirector();
|
||||
private:
|
||||
IDebugClient5 *m_client;
|
||||
IDebugOutputCallbacksWide *m_oldHandler;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Debugger
|
||||
|
||||
|
||||
Reference in New Issue
Block a user