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;