pykd/pykd/python/pysupport.cpp
SND\EreTIk_cp 5c7857a718 [0.2.x] + bugCheckData
git-svn-id: https://pykd.svn.codeplex.com/svn@82621 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00

37 lines
970 B
C++

#include "stdafx.h"
#include "pysupport.h"
#include "dbgengine.h"
#include <vector>
///////////////////////////////////////////////////////////////////////////////
namespace pykd {
namespace pysupport {
///////////////////////////////////////////////////////////////////////////////
python::list getProcessThreads()
{
std::vector<ULONG64> threads;
getAllProcessThreads( threads );
python::list threadsLst;
std::vector<ULONG64>::iterator it;
for ( it = threads.begin(); it != threads.end(); ++it )
threadsLst.append( *it );
return threadsLst;
}
python::tuple getBugCheckData()
{
BUG_CHECK_DATA bugCheckData;
readBugCheckData(bugCheckData);
return python::make_tuple(bugCheckData.code, bugCheckData.arg1, bugCheckData.arg2, bugCheckData.arg3, bugCheckData.arg4);
}
///////////////////////////////////////////////////////////////////////////////
} } //pykd::support namespace end