mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[~] silent mode for load/unload module callbacks
git-svn-id: https://pykd.svn.codeplex.com/svn@65731 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
a5c8f7e887
commit
f5e9108187
@ -3,9 +3,11 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "dbgeng.h"
|
||||
#include <memory>
|
||||
#include <dbgeng.h>
|
||||
|
||||
#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<OutputReader> 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<OutputReader> 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())
|
||||
|
Loading…
Reference in New Issue
Block a user