[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
This commit is contained in:
SND\kernelnet_cp 2012-03-27 14:57:29 +00:00 committed by Mikhail I. Izmestev
parent 3ba32a0b82
commit 7eb1b48220

View File

@ -37,16 +37,18 @@ DebugClientPtr DebugClient::createDbgClient() {
DebugClientPtr DebugClient::createDbgClient( IDebugClient4 *client ) {
HRESULT hres;
CComPtr<IDebugClient> newClient = NULL;
//HRESULT hres;
//CComPtr<IDebugClient> 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<IDebugClient4> client4= newClient;
//CComQIPtr<IDebugClient4> 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;