From 5371048a72f7b06fb36869334610fa9cefece338 Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Thu, 14 Apr 2011 07:07:33 +0000 Subject: [PATCH] [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 --- pykd/dbgcmd.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pykd/dbgcmd.h b/pykd/dbgcmd.h index 6e2e22c..3cb4028 100644 --- a/pykd/dbgcmd.h +++ b/pykd/dbgcmd.h @@ -9,17 +9,17 @@ std::string dbgCommand( const std::string &command ); template -void +bool setExecutionStatus() { HRESULT hres; try { - + hres = dbgExt->control->SetExecutionStatus( status ); if ( FAILED( hres ) ) - throw DbgException( "IDebugControl::SetExecutionStatus failed" ); + return false; ULONG currentStatus; @@ -36,7 +36,9 @@ setExecutionStatus() throw DbgException( "IDebugControl::GetExecutionStatus failed" ); - } 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 ) @@ -47,6 +49,8 @@ setExecutionStatus() { dbgExt->control->Output( DEBUG_OUTPUT_ERROR, "pykd unexpected error\n" ); } + + return false; } /////////////////////////////////////////////////////////////////////////////////