[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:
SND\kernelnet_cp 2014-06-17 15:09:59 +00:00 committed by Mikhail I. Izmestev
parent ceb07a7708
commit 3aed18aaeb
2 changed files with 13 additions and 4 deletions

View File

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

View File

@ -91,9 +91,16 @@ namespace pykd {
void initialize() void initialize()
{ {
AutoRestorePyState pystate;
kdlib::initialize(); kdlib::initialize();
} }
void remote_initialize( const std::wstring& remoteOptions )
{
AutoRestorePyState pystate;
kdlib::remote_initialize(remoteOptions);
}
void uninitialize() void uninitialize()
{ {
kdlib::uninitialize(); kdlib::uninitialize();
@ -111,9 +118,11 @@ BOOST_PYTHON_MODULE( pykd )
python::scope().attr("__version__") = pykdVersion; python::scope().attr("__version__") = pykdVersion;
python::scope().attr("version") = pykdVersion; python::scope().attr("version") = pykdVersion;
python::def( "initialize", &pykd::initialize, python::def( "initialize", pykd::initialize,
"Initialize debug engine, only for console mode" ); "Initialize local debug engine, only for console mode" );
python::def( "deinitialize", &pykd::uninitialize, 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" ); "Deintialize debug engine, only for console mode" );
// DbgEng services // DbgEng services