From f5e91081875e8fad91e3a2dd9d6bdaf0fba009ed Mon Sep 17 00:00:00 2001 From: "SND\\EreTIk_cp" Date: Mon, 23 May 2011 10:39:16 +0000 Subject: [PATCH] [~] silent mode for load/unload module callbacks git-svn-id: https://pykd.svn.codeplex.com/svn@65731 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgmodevent.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pykd/dbgmodevent.cpp b/pykd/dbgmodevent.cpp index 0195dfa..62e81b2 100644 --- a/pykd/dbgmodevent.cpp +++ b/pykd/dbgmodevent.cpp @@ -3,9 +3,11 @@ ///////////////////////////////////////////////////////////////////////////////// #include "stdafx.h" -#include "dbgeng.h" +#include +#include #include "dbgmodule.h" +#include "dbgcallback.h" #include "dbgmodevent.h" ///////////////////////////////////////////////////////////////////////////////// @@ -40,8 +42,11 @@ ULONG moduleEvents::onLoadModule(__in ULONG64 addr) ULONG64 moduleBase; ULONG moduleSize; std::string moduleName; + + std::auto_ptr silentMode( new OutputReader(dbgExt->client) ); queryModuleParams(addr, moduleName, moduleBase, moduleSize); dbgModuleClass module(moduleName, moduleBase, moduleSize); + silentMode.reset(); modCallbacksColl::iterator itCallback = modCallbacks.begin(); while (itCallback != modCallbacks.end()) @@ -66,8 +71,11 @@ ULONG moduleEvents::onUnloadModule(__in ULONG64 addr) ULONG64 moduleBase; ULONG moduleSize; std::string moduleName; + + std::auto_ptr silentMode( new OutputReader(dbgExt->client) ); queryModuleParams(addr, moduleName, moduleBase, moduleSize); dbgModuleClass module(moduleName, moduleBase, moduleSize); + silentMode.reset(); modCallbacksColl::iterator itCallback = modCallbacks.begin(); while (itCallback != modCallbacks.end())