mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.3.x] added : remote_initialize routine ( Initialize debug engine for remoting, only for console mode )
git-svn-id: https://pykd.svn.codeplex.com/svn@88658 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
ceb07a7708
commit
3aed18aaeb
@ -2,7 +2,7 @@
|
||||
#define PYKD_VERSION_MAJOR 0
|
||||
#define PYKD_VERSION_MINOR 3
|
||||
#define PYKD_VERSION_SUBVERSION 0
|
||||
#define PYKD_VERSION_BUILDNO 6
|
||||
#define PYKD_VERSION_BUILDNO 7
|
||||
|
||||
#define __VER_STR2__(x) #x
|
||||
#define __VER_STR1__(x) __VER_STR2__(x)
|
||||
|
@ -91,9 +91,16 @@ namespace pykd {
|
||||
|
||||
void initialize()
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
kdlib::initialize();
|
||||
}
|
||||
|
||||
void remote_initialize( const std::wstring& remoteOptions )
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
kdlib::remote_initialize(remoteOptions);
|
||||
}
|
||||
|
||||
void uninitialize()
|
||||
{
|
||||
kdlib::uninitialize();
|
||||
@ -111,9 +118,11 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
python::scope().attr("__version__") = pykdVersion;
|
||||
python::scope().attr("version") = pykdVersion;
|
||||
|
||||
python::def( "initialize", &pykd::initialize,
|
||||
"Initialize debug engine, only for console mode" );
|
||||
python::def( "deinitialize", &pykd::uninitialize,
|
||||
python::def( "initialize", pykd::initialize,
|
||||
"Initialize local debug engine, only for console mode" );
|
||||
python::def( "remote_initialize",pykd::remote_initialize,
|
||||
"Initialize debug engine for remoting, only for console mode" );
|
||||
python::def( "deinitialize", pykd::uninitialize,
|
||||
"Deintialize debug engine, only for console mode" );
|
||||
|
||||
// DbgEng services
|
||||
|
Loading…
Reference in New Issue
Block a user