From 2659e505e68a23693387f1b220be1d9e6db78f06 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 23 Jun 2015 12:43:48 +0200 Subject: [PATCH] CDB: Add status messages for loaded modules. Change-Id: I7fc676f938f69ecc8d228a0d3509da6e7e3e0b1a Reviewed-by: Christian Stenger --- src/plugins/debugger/cdb/cdbengine.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 069634d81fe..ab9b0183eb8 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -2541,7 +2541,14 @@ void CdbEngine::parseOutputLine(QByteArray line) } } } - showMessage(QString::fromLocal8Bit(line), LogMisc); + // output(64): ModLoad: 00007ffb`842b0000 00007ffb`843ee000 C:\Windows\system32\KERNEL32.DLL + // output(32): ModLoad: 00007ffb 00007ffb C:\Windows\system32\KERNEL32.DLL + if (line.startsWith("ModLoad: ")) { + QRegExp moduleRegExp(QLatin1String( + "[0-9a-fA-F]+(`[0-9a-fA-F]+)? [0-9a-fA-F]+(`[0-9a-fA-F]+)? (.*)")); + if (moduleRegExp.indexIn(QLatin1String(line)) > -1) + showStatusMessage(tr("Module loaded: ") + moduleRegExp.cap(3).trimmed(), 3000); + } } void CdbEngine::readyReadStandardOut()