[0.3.x] fixed : issue #13266 ( getNumberProcesses returns wrong values )

[0.3.x] fixed : issue #13265 ( loadDump returns None )
[0.3.x] added : closeDump routine

git-svn-id: https://pykd.svn.codeplex.com/svn@89140 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2014-10-09 06:38:15 +00:00 committed by Mikhail I. Izmestev
parent 4c0581d25e
commit 2a757d2727
3 changed files with 12 additions and 3 deletions

View File

@ -54,10 +54,17 @@ void terminateAllProcesses()
}
inline
void loadDump( const std::wstring &fileName )
kdlib::PROCESS_DEBUG_ID loadDump( const std::wstring &fileName )
{
AutoRestorePyState pystate;
kdlib::loadDump(fileName);
return kdlib::loadDump(fileName);
}
inline
void closeDump(kdlib::PROCESS_DEBUG_ID processId = -1)
{
AutoRestorePyState pystate;
kdlib::closeDump(processId);
}
inline

View File

@ -2,7 +2,7 @@
#define PYKD_VERSION_MAJOR 0
#define PYKD_VERSION_MINOR 3
#define PYKD_VERSION_SUBVERSION 0
#define PYKD_VERSION_BUILDNO 9
#define PYKD_VERSION_BUILDNO 10
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)

View File

@ -155,6 +155,8 @@ BOOST_PYTHON_MODULE( pykd )
"Detach from all process then terminate them");
python::def( "loadDump", pykd::loadDump,
"Load crash dump");
python::def( "closeDump", pykd::closeDump,
"Close crash dump");
python::def( "isLocalKernelDebuggerEnabled", pykd::isLocalKernelDebuggerEnabled,
"Check whether kernel debugging is enabled for the local kernel");
python::def( "attachKernel", pykd::attachKernel, attachKernel_( boost::python::args( "connectOptions" ),