[0.2.x] fixed : issue #11672 ( iteration through local vars raises unexpected exception )

git-svn-id: https://pykd.svn.codeplex.com/svn@83600 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2013-05-06 06:06:51 +00:00 committed by Mikhail I. Izmestev
parent c3bc370765
commit 872e44b444
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
#define PYKD_VERSION_MAJOR 0 #define PYKD_VERSION_MAJOR 0
#define PYKD_VERSION_MINOR 2 #define PYKD_VERSION_MINOR 2
#define PYKD_VERSION_SUBVERSION 0 #define PYKD_VERSION_SUBVERSION 0
#define PYKD_VERSION_BUILDNO 19 #define PYKD_VERSION_BUILDNO 20
#define __VER_STR2__(x) #x #define __VER_STR2__(x) #x

View File

@ -408,7 +408,7 @@ python::object StackFrame::getLocalByIndex( ULONG index )
} }
if ( !symVar ) if ( !symVar )
throw DbgException("local var not found"); throw PyException( PyExc_IndexError, "index out of range" );
ULONG64 varAddr; ULONG64 varAddr;
const LocationType locType = static_cast<LocationType>(symVar->getLocType()); const LocationType locType = static_cast<LocationType>(symVar->getLocType());
@ -476,7 +476,7 @@ python::object StackFrame::getParamByIndex( ULONG index )
} }
if ( !symVar ) if ( !symVar )
throw DbgException("local var not found"); throw PyException( PyExc_IndexError, "index out of range" );
ULONG64 varAddr; ULONG64 varAddr;
const LocationType locType = static_cast<LocationType>(symVar->getLocType()); const LocationType locType = static_cast<LocationType>(symVar->getLocType());