From 4ae55470b2c8e05a1d8f9ac38d74d98fdbcf9750 Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Tue, 15 Feb 2011 08:19:12 +0000 Subject: [PATCH] [~] updated : typedVar routine will return None if varibales's address is invalid. git-svn-id: https://pykd.svn.codeplex.com/svn@61490 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgtype.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pykd/dbgtype.cpp b/pykd/dbgtype.cpp index c1a30be..c51b9e4 100644 --- a/pykd/dbgtype.cpp +++ b/pykd/dbgtype.cpp @@ -7,6 +7,7 @@ #include "dbgexcept.h" #include "dbgmem.h" #include "dbgsystem.h" +#include "dbgmem.h" using namespace std; @@ -319,6 +320,9 @@ TypeInfo::TypeInfo( const std::string &moduleName, const std::string &typeName boost::python::object TypeInfo::load( ULONG64 addr ) const { + if ( !isOffsetValid( addr) ) + return boost::python::object(); + if ( m_pointer ) return ptrLoader( addr );