Commit 8167656e authored by ussrhero's avatar ussrhero
Browse files

added getDumpType ( returns dump's type )

parent cf27e907
...@@ -147,6 +147,13 @@ void setOutputMask(const kdlib::OutputFlagsSet& outputMask) ...@@ -147,6 +147,13 @@ void setOutputMask(const kdlib::OutputFlagsSet& outputMask)
kdlib::setOutputFlags(outputMask); kdlib::setOutputFlags(outputMask);
} }
inline
kdlib::DumpType getDumpType()
{
AutoRestorePyState pystate;
return kdlib::getDumpType();
}
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// processes end threads // processes end threads
......
...@@ -2,7 +2,7 @@ ...@@ -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 4 #define PYKD_VERSION_SUBVERSION 4
#define PYKD_VERSION_BUILDNO 13 #define PYKD_VERSION_BUILDNO 14
#define __VER_STR2__(x) #x #define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x) #define __VER_STR1__(x) __VER_STR2__(x)
......
...@@ -202,6 +202,8 @@ void pykd_init() ...@@ -202,6 +202,8 @@ void pykd_init()
"Get output mask"); "Get output mask");
python::def("setOutputMask", pykd::setOutputMask, python::def("setOutputMask", pykd::setOutputMask,
"Set output mask"); "Set output mask");
python::def("getDumpType", pykd::getDumpType,
"Return type of dump");
python::def( "breakin", pykd::targetBreak, python::def( "breakin", pykd::targetBreak,
"Break into debugger" ); "Break into debugger" );
...@@ -1532,6 +1534,16 @@ void pykd_init() ...@@ -1532,6 +1534,16 @@ void pykd_init()
.value("All", kdlib::All) .value("All", kdlib::All)
; ;
python::enum_<kdlib::DumpType>("dumpType", "Dump type")
.value("Small", kdlib::Small)
.value("Default", kdlib::Default)
.value("Full", kdlib::Full)
.value("Image", kdlib::Image)
.value("KernelSmall", kdlib::KernelSmall)
.value("Kernel", kdlib::Kernel)
.value("KernelFull", kdlib::KernelFull)
;
// C++ exception translation to python // C++ exception translation to python
pykd::registerExceptions(); 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