[0.3.x] fixed : issue #13829 ( !pykd.install raises exception )

git-svn-id: https://pykd.svn.codeplex.com/svn@90915 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2016-01-28 15:27:49 +00:00 committed by Mikhail I. Izmestev
parent 7831e430ae
commit ca820532f5
4 changed files with 26 additions and 5 deletions

View File

@ -71,6 +71,10 @@ public:
std::wstring encoding() {
return L"ascii";
}
bool closed() {
return false;
}
};
///////////////////////////////////////////////////////////////////////////////
@ -87,6 +91,10 @@ public:
std::wstring encoding() {
return L"ascii";
}
bool closed() {
return false;
}
};
///////////////////////////////////////////////////////////////////////////////

View File

@ -205,11 +205,13 @@ BOOST_PYTHON_MODULE( pykd )
.def( "write", &DbgOut::write )
.def( "writedml", &DbgOut::writedml)
.def( "flush", &DbgOut::flush )
.add_property( "encoding", &DbgOut::encoding );
.add_property( "encoding", &DbgOut::encoding )
.add_property( "closed", &DbgOut::closed );
python::class_<DbgIn>( "din", "din", python::no_init )
.def( "readline", &DbgIn::readline )
.add_property( "encoding", &DbgIn::encoding );
.add_property( "encoding", &DbgIn::encoding )
.add_property("closed", &DbgIn::closed );
// system properties
python::def( "ptrSize", pykd::ptrSize,

View File

@ -3,7 +3,7 @@
#define PYKDEXT_VERSION_MAJOR 1
#define PYKDEXT_VERSION_MINOR 0
#define PYKDEXT_VERSION_SUBVERSION 1
#define PYKDEXT_VERSION_BUILDNO 10
#define PYKDEXT_VERSION_BUILDNO 11
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)

View File

@ -74,6 +74,10 @@ public:
return L"ascii";
}
bool closed() {
return false;
}
private:
CComQIPtr<IDebugControl4> m_control;
@ -103,6 +107,11 @@ public:
return inputstr.empty() ? L"\n" : inputstr;
}
bool closed() {
return false;
}
private:
CComQIPtr<IDebugControl4> m_control;
@ -201,10 +210,12 @@ public:
.def("write", &DbgOut::write)
.def("writedml", &DbgOut::writedml)
.def("flush", &DbgOut::flush)
.add_property("encoding", &DbgOut::encoding);
.add_property("encoding", &DbgOut::encoding)
.add_property("closed", &DbgOut::closed);
python::class_<DbgIn>("din", "din", python::no_init)
.def("readline", &DbgIn::readline);
.def("readline", &DbgIn::readline)
.add_property("closed", &DbgIn::closed);
m_globalInterpreter->deactivate();
}