pykd/pykd/stkframe.h
SND\EreTIk_cp b7addbf064 [0.1.x]
~ bind stack frame to debug client
 + get local vars from stack frame

git-svn-id: https://pykd.svn.codeplex.com/svn@73631 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00

39 lines
867 B
C++

//
// Stack frame: DEBUG_STACK_FRAME wrapper
//
#pragma once
#include "dbgclient.h"
////////////////////////////////////////////////////////////////////////////////
namespace pykd {
////////////////////////////////////////////////////////////////////////////////
class StackFrame
{
public:
StackFrame(DebugClientPtr client, const DEBUG_STACK_FRAME &frame);
ULONG m_frameNumber;
ULONG64 m_instructionOffset;
ULONG64 m_returnOffset;
ULONG64 m_frameOffset;
ULONG64 m_stackOffset;
python::dict getLocals(ContextPtr ctx = ContextPtr());
std::string print() const;
private:
DebugClientPtr m_client;
};
////////////////////////////////////////////////////////////////////////////////
} // namespace pykd
////////////////////////////////////////////////////////////////////////////////