mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[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:
parent
4c0581d25e
commit
2a757d2727
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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" ),
|
||||
|
Loading…
Reference in New Issue
Block a user