Commit eeb802ff authored by ussrhero's avatar ussrhero
Browse files

added : stackFrame.switchTo( switch to this frame )

parent 3305c6d9
Subproject commit 65930b3307d248503d3c1051f61b50476437845b
Subproject commit b92e0fbcc0628b2e8dc320f79a2bb9464b8d9908
......@@ -64,6 +64,12 @@ public:
return frame->getStaticVar(paramName);
return frame->getLocalVar(paramName);
static void switchTo(kdlib::StackFramePtr& frame)
AutoRestorePyState pystate;
......@@ -1097,6 +1097,8 @@ void pykd_init()
"return a set of function's local variables as a dict ( name : value)")
.def( "getLocal", StackFrameAdapter::getLocal,
"return the function's local variable by it's name")
.def( "switchTo", StackFrameAdapter::switchTo,
"Make this frame a current")
.def( "__str__", StackFrameAdapter::print );
python::class_<CPUContextAdapter>("cpu", "class for CPU context representation" )
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