mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[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:
parent
7831e430ae
commit
ca820532f5
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user