mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[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:
parent
3041ac3fdb
commit
5371048a72
@ -9,7 +9,7 @@ std::string
|
|||||||
dbgCommand( const std::string &command );
|
dbgCommand( const std::string &command );
|
||||||
|
|
||||||
template <ULONG status>
|
template <ULONG status>
|
||||||
void
|
bool
|
||||||
setExecutionStatus()
|
setExecutionStatus()
|
||||||
{
|
{
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
@ -19,7 +19,7 @@ setExecutionStatus()
|
|||||||
hres = dbgExt->control->SetExecutionStatus( status );
|
hres = dbgExt->control->SetExecutionStatus( status );
|
||||||
|
|
||||||
if ( FAILED( hres ) )
|
if ( FAILED( hres ) )
|
||||||
throw DbgException( "IDebugControl::SetExecutionStatus failed" );
|
return false;
|
||||||
|
|
||||||
ULONG currentStatus;
|
ULONG currentStatus;
|
||||||
|
|
||||||
@ -38,6 +38,8 @@ setExecutionStatus()
|
|||||||
|
|
||||||
} while( currentStatus != DEBUG_STATUS_BREAK && currentStatus != DEBUG_STATUS_NO_DEBUGGEE );
|
} while( currentStatus != DEBUG_STATUS_BREAK && currentStatus != DEBUG_STATUS_NO_DEBUGGEE );
|
||||||
|
|
||||||
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
catch( std::exception &e )
|
catch( std::exception &e )
|
||||||
{
|
{
|
||||||
@ -47,6 +49,8 @@ setExecutionStatus()
|
|||||||
{
|
{
|
||||||
dbgExt->control->Output( DEBUG_OUTPUT_ERROR, "pykd unexpected error\n" );
|
dbgExt->control->Output( DEBUG_OUTPUT_ERROR, "pykd unexpected error\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user