summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/cdb/cdbassembler.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-04-20 16:40:50 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-04-20 16:40:50 +0200
commit3695ee3646152b2afa752507692cf766eb813e51 (patch)
treee8a82b2f7a84c22980199651e599b8581b6524bd /src/plugins/debugger/cdb/cdbassembler.cpp
parent892042636dd9a1254193b8a808deeb8fccb32f1d (diff)
downloadqt-creator-3695ee3646152b2afa752507692cf766eb813e51.tar.gz
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.
Diffstat (limited to 'src/plugins/debugger/cdb/cdbassembler.cpp')
-rw-r--r--src/plugins/debugger/cdb/cdbassembler.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/debugger/cdb/cdbassembler.cpp b/src/plugins/debugger/cdb/cdbassembler.cpp
index 4cb59c7d69..ae030578c9 100644
--- a/src/plugins/debugger/cdb/cdbassembler.cpp
+++ b/src/plugins/debugger/cdb/cdbassembler.cpp
@@ -212,14 +212,11 @@ bool dissassemble(IDebugClient5 *client,
// in assembler code). We build a complete string first as line breaks
// may occur in-between messages.
StringOutputHandler stringHandler;
- IDebugOutputCallbacksWide *oldHandler = CdbDebugOutputBase::getOutputCallback(client);
- client->SetOutputCallbacksWide(&stringHandler);
+ OutputRedirector redir(client, &stringHandler);
// For some reason, we need to output to "all clients"
const HRESULT hr = ctl->OutputDisassemblyLines(DEBUG_OUTCTL_ALL_CLIENTS,
beforeLines, beforeLines + afterLines,
offset, flags, 0, 0, 0, 0);
- client->SetOutputCallbacksWide(oldHandler);
-
if (FAILED(hr)) {
*errorMessage= QString::fromLatin1("Unable to dissamble at 0x%1: %2").
arg(QString::number(offset, 16), msgComFailed("OutputDisassemblyLines", hr));