Commit 6e966b96 authored by ussrhero's avatar ussrhero
Browse files

added getDumpFormat ( returns format of the dump )

parent 8167656e
......@@ -154,6 +154,13 @@ kdlib::DumpType getDumpType()
return kdlib::getDumpType();
}
inline
kdlib::DumpFormatFlagsSet getDumpFormat()
{
AutoRestorePyState pystate;
return kdlib::getDumpFormat();
}
///////////////////////////////////////////////////////////////////////////////
// processes end threads
......
......@@ -203,7 +203,9 @@ void pykd_init()
python::def("setOutputMask", pykd::setOutputMask,
"Set output mask");
python::def("getDumpType", pykd::getDumpType,
"Return type of dump");
"Return type of the dump");
python::def("getDumpFormat", pykd::getDumpFormat,
"Return format the dump");
python::def( "breakin", pykd::targetBreak,
"Break into debugger" );
......@@ -1544,6 +1546,29 @@ void pykd_init()
.value("KernelFull", kdlib::KernelFull)
;
python::enum_<kdlib::DumpFormat>("dumpFormat", "Dump format")
.value("UserSmallFullMemory", kdlib::UserSmallFullMemory)
.value("UserSmallHandleData", kdlib::UserSmallHandleData)
.value("UserSmallUnloadedModules", kdlib::UserSmallUnloadedModules)
.value("UserSmallIndirectMemory", kdlib::UserSmallIndirectMemory)
.value("UserSmallDataSegments", kdlib::UserSmallDataSegments)
.value("UserSmallFilterMemory", kdlib::UserSmallFilterMemory)
.value("UserSmallFilterPaths", kdlib::UserSmallFilterPaths)
.value("UserSmallProcessThreadData", kdlib::UserSmallProcessThreadData)
.value("UserSmallPrivateReadWriteMemory", kdlib::UserSmallPrivateReadWriteMemory)
.value("UserSmallNoOptionalData", kdlib::UserSmallNoOptionalData)
.value("UserSmallFullMemoryInfo", kdlib::UserSmallFullMemoryInfo)
.value("UserSmallThreadInfo", kdlib::UserSmallThreadInfo)
.value("UserSmallCodeSegments", kdlib::UserSmallCodeSegments)
.value("UserSmallNoAuxiliaryState", kdlib::UserSmallNoAuxiliaryState)
.value("UserSmallFullAuxiliaryState", kdlib::UserSmallFullAuxiliaryState)
.value("UserSmallModuleHeaders", kdlib::UserSmallModuleHeaders)
.value("UserSmallFilterTriage", kdlib::UserSmallFilterTriage)
.value("UserSmallAddAvxXStateContext", kdlib::UserSmallAddAvxXStateContext)
.value("UserSmallIptTrace", kdlib::UserSmallIptTrace)
.value("UserSmallIgnoreInaccessibleMem", kdlib::UserSmallIgnoreInaccessibleMem)
;
// 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