[!] fixed : setExecutionStatus

git-svn-id: https://pykd.svn.codeplex.com/svn@59201 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2010-12-27 07:46:48 +00:00
parent 37f46bc097
commit db10c69deb

View File

@ -23,10 +23,22 @@ setExecutionStatus()
if ( FAILED( hres ) )
throw DbgException( "IDebugControl::SetExecutionStatus failed" );
hres = dbgExt->control->WaitForEvent( 0, INFINITE );
ULONG currentStatus;
do {
hres = dbgExt->control->WaitForEvent( 0, INFINITE );
if ( FAILED( hres ) )
throw DbgException( "IDebugControl::SetExecutionStatus failed" );
if ( FAILED( hres ) )
throw DbgException( "IDebugControl::SetExecutionStatus failed" );
hres = dbgExt->control->GetExecutionStatus( &currentStatus );
if ( FAILED( hres ) )
throw DbgException( "IDebugControl::GetExecutionStatus failed" );
} while( currentStatus != DEBUG_STATUS_BREAK && currentStatus != DEBUG_STATUS_NO_DEBUGGEE );
}
catch( std::exception &e )