mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 11:43:23 +08:00

[+] added: setImplicitThread routine ( change current thread context ) [+] added: dbgStackFrameClass class ( information about stack frame ) [+] added: getCurrentStack routine ( get current stack as collections of dbgStackFrameClass object ) git-svn-id: https://pykd.svn.codeplex.com/svn@54280 9b283d60-5439-405e-af05-b73fd8c4d996
35 lines
828 B
C++
35 lines
828 B
C++
#pragma once
|
|
|
|
#include <boost/python.hpp>
|
|
#include <boost/python/object.hpp>
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
bool
|
|
setImplicitThread(
|
|
ULONG64 newThreadAddr,
|
|
PULONG64 oldThreadAddr );
|
|
|
|
ULONG64
|
|
getImplicitThread();
|
|
|
|
|
|
boost::python::object
|
|
getCurrentStack();
|
|
|
|
class dbgStackFrameClass : public DEBUG_STACK_FRAME {
|
|
|
|
public:
|
|
|
|
dbgStackFrameClass()
|
|
{
|
|
memset( static_cast<DEBUG_STACK_FRAME*>( this ), 0, sizeof(DEBUG_STACK_FRAME) );
|
|
}
|
|
|
|
dbgStackFrameClass( const DEBUG_STACK_FRAME &stackFrame )
|
|
{
|
|
memcpy( static_cast<DEBUG_STACK_FRAME*>( this ), &stackFrame, sizeof(DEBUG_STACK_FRAME) );
|
|
}
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|