From 7eb1b482201dfba2d7830912aba21d34f700547e Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Tue, 27 Mar 2012 14:57:29 +0000 Subject: [PATCH] [0.1.x] fixed : OutputReader does not discard output into windbg console git-svn-id: https://pykd.svn.codeplex.com/svn@75086 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgclient.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pykd/dbgclient.cpp b/pykd/dbgclient.cpp index c3dfe3f..17b229d 100644 --- a/pykd/dbgclient.cpp +++ b/pykd/dbgclient.cpp @@ -37,16 +37,18 @@ DebugClientPtr DebugClient::createDbgClient() { DebugClientPtr DebugClient::createDbgClient( IDebugClient4 *client ) { - HRESULT hres; - CComPtr newClient = NULL; + //HRESULT hres; + //CComPtr newClient = NULL; - hres = client->CreateClient( &newClient ); - if ( FAILED( hres ) ) - throw DbgException("DebugCreate failed"); + //hres = client->CreateClient( &newClient ); + //if ( FAILED( hres ) ) + // throw DbgException("DebugCreate failed"); - CComQIPtr client4= newClient; + //CComQIPtr client4= newClient; - return DebugClientPtr( new DebugClient(client4) ); + //return DebugClientPtr( new DebugClient(client4) ); + + return DebugClientPtr( new DebugClient(client) ); } /////////////////////////////////////////////////////////////////////////////////// @@ -443,6 +445,8 @@ void DebugClient::splitSymName( const std::string &fullName, std::string &module { boost::cmatch matchResult; + OutputReader outputDiscard( m_client ); + if ( !boost::regex_match( fullName.c_str(), matchResult, moduleSymMatch ) ) { std::stringstream sstr;