mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-22 05:13:22 +08:00
[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:
parent
c3bc370765
commit
872e44b444
@ -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
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user