mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 19:53:22 +08:00
added : stackFrame.switchTo( switch to this frame )
This commit is contained in:
parent
3305c6d980
commit
eeb802ff33
2
kdlibcpp
2
kdlibcpp
@ -1 +1 @@
|
|||||||
Subproject commit 65930b3307d248503d3c1051f61b50476437845b
|
Subproject commit b92e0fbcc0628b2e8dc320f79a2bb9464b8d9908
|
@ -64,6 +64,12 @@ public:
|
|||||||
return frame->getStaticVar(paramName);
|
return frame->getStaticVar(paramName);
|
||||||
return frame->getLocalVar(paramName);
|
return frame->getLocalVar(paramName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void switchTo(kdlib::StackFramePtr& frame)
|
||||||
|
{
|
||||||
|
AutoRestorePyState pystate;
|
||||||
|
frame->switchTo();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1097,6 +1097,8 @@ void pykd_init()
|
|||||||
"return a set of function's local variables as a dict ( name : value)")
|
"return a set of function's local variables as a dict ( name : value)")
|
||||||
.def( "getLocal", StackFrameAdapter::getLocal,
|
.def( "getLocal", StackFrameAdapter::getLocal,
|
||||||
"return the function's local variable by it's name")
|
"return the function's local variable by it's name")
|
||||||
|
.def( "switchTo", StackFrameAdapter::switchTo,
|
||||||
|
"Make this frame a current")
|
||||||
.def( "__str__", StackFrameAdapter::print );
|
.def( "__str__", StackFrameAdapter::print );
|
||||||
|
|
||||||
python::class_<CPUContextAdapter>("cpu", "class for CPU context representation" )
|
python::class_<CPUContextAdapter>("cpu", "class for CPU context representation" )
|
||||||
|
Loading…
Reference in New Issue
Block a user