Commit f6dc5f1b authored by Aleksey R.'s avatar Aleksey R.

Merge branch '0.3.2' into '0.3.2'

update

See merge request !1
parents 2cc75c08 5d30d679
Subproject commit 58ee1ee9a33bc509342fe3d2a13c11823241000b
Subproject commit 8d28d97eaa231f1c7c8147e9a54d71344deeea21
......@@ -119,6 +119,20 @@ python::object debugCommand( const std::wstring &command, bool suppressOutput =
return python::object();
}
inline
kdlib::DebugOptionsSet getDebugOptions()
{
AutoRestorePyState pystate;
return kdlib::getDebugOptions();
}
inline
void changeDebugOptions(kdlib::DebugOptionsSet &addOptions, kdlib::DebugOptionsSet &removeOptions)
{
AutoRestorePyState pystate;
kdlib::changeDebugOptions(addOptions, removeOptions);
}
///////////////////////////////////////////////////////////////////////////////
// processes end threads
......
......@@ -2,7 +2,7 @@
#define PYKD_VERSION_MAJOR 0
#define PYKD_VERSION_MINOR 3
#define PYKD_VERSION_SUBVERSION 3
#define PYKD_VERSION_BUILDNO 2
#define PYKD_VERSION_BUILDNO 3
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)
......
......@@ -186,6 +186,11 @@ BOOST_PYTHON_MODULE( pykd )
"Create memory dump file" );
python::def( "getLocalProcesses", pykd::getLocalProcesses,
"Return list of runnng processes on the host system" );
python::def( "getDebugOptions", pykd::getDebugOptions,
"Return debug options" );
python::def( "changeDebugOptions", pykd::changeDebugOptions,
"Change debug options" );
python::def( "breakin", pykd::targetBreak,
"Break into debugger" );
......@@ -1360,16 +1365,17 @@ BOOST_PYTHON_MODULE( pykd )
.def("__str__", pykd::printSyntheticSymbol,
"Return object as a string");
//python::class_<pykd::DataAccessor, boost::noncopyable>("dataAccessor",
// "class for abstract representation of data storage",python::no_init)
// .def("readByte", &pykd::DataAccessor::readByte)
// ;
//python::class_<pykd::ListDataAccessor, kdlib::DataAccessorPtr>("objectAccessor",
// "class for data access to python objects", python::no_init)
// .def( python::init<python::object&>() )
// //.def("readByte", &pykd::ListDataAccessor::readByte, "")
// ;
python::enum_<kdlib::DebugOptions>("debugOptions", "Debug options")
.value("InitialBreak", kdlib::InitialBreak)
.value("FinalBreak", kdlib::FinalBreak)
.value("PreferDml", kdlib::PreferDml)
;
python::enum_<kdlib::BreakpointAccess>("breakpointAccess", "Breakpoint access types")
.value("Read", kdlib::Read)
.value("Write", kdlib::Write)
.value("Execute", kdlib::Execute)
;
// C++ exception translation to python
pykd::registerExceptions();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment