mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 12:53:23 +08:00
[!] fixed : setExecutionStatus
git-svn-id: https://pykd.svn.codeplex.com/svn@59201 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
37f46bc097
commit
db10c69deb
@ -23,11 +23,23 @@ setExecutionStatus()
|
||||
if ( FAILED( hres ) )
|
||||
throw DbgException( "IDebugControl::SetExecutionStatus failed" );
|
||||
|
||||
ULONG currentStatus;
|
||||
|
||||
do {
|
||||
|
||||
hres = dbgExt->control->WaitForEvent( 0, INFINITE );
|
||||
|
||||
if ( FAILED( hres ) )
|
||||
throw DbgException( "IDebugControl::SetExecutionStatus failed" );
|
||||
|
||||
hres = dbgExt->control->GetExecutionStatus( ¤tStatus );
|
||||
|
||||
if ( FAILED( hres ) )
|
||||
throw DbgException( "IDebugControl::GetExecutionStatus failed" );
|
||||
|
||||
|
||||
} while( currentStatus != DEBUG_STATUS_BREAK && currentStatus != DEBUG_STATUS_NO_DEBUGGEE );
|
||||
|
||||
}
|
||||
catch( std::exception &e )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user