[pykd] fixed: issue 8614 ( go() works incorrectly while process is terminating )

git-svn-id: https://pykd.svn.codeplex.com/svn@63966 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2011-04-14 07:07:33 +00:00
parent 3041ac3fdb
commit 5371048a72

View File

@ -9,7 +9,7 @@ std::string
dbgCommand( const std::string &command );
template <ULONG status>
void
bool
setExecutionStatus()
{
HRESULT hres;
@ -19,7 +19,7 @@ setExecutionStatus()
hres = dbgExt->control->SetExecutionStatus( status );
if ( FAILED( hres ) )
throw DbgException( "IDebugControl::SetExecutionStatus failed" );
return false;
ULONG currentStatus;
@ -38,6 +38,8 @@ setExecutionStatus()
} while( currentStatus != DEBUG_STATUS_BREAK && currentStatus != DEBUG_STATUS_NO_DEBUGGEE );
return true;
}
catch( std::exception &e )
{
@ -47,6 +49,8 @@ setExecutionStatus()
{
dbgExt->control->Output( DEBUG_OUTPUT_ERROR, "pykd unexpected error\n" );
}
return false;
}
/////////////////////////////////////////////////////////////////////////////////