mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 19:53:22 +08:00
37 lines
970 B
C++
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
|