From 19d9ca7a92e6a8f901d2f1b73950a97865cef6bf Mon Sep 17 00:00:00 2001 From: "SND\\ussrhero_cp" Date: Mon, 29 Dec 2014 22:18:14 +0000 Subject: [PATCH] [0.3.x] fixed : setCurrentFrameByIndex git-svn-id: https://pykd.svn.codeplex.com/svn@89553 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/pycpucontext.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pykd/pycpucontext.h b/pykd/pycpucontext.h index a6a6f14..0763d93 100644 --- a/pykd/pycpucontext.h +++ b/pykd/pycpucontext.h @@ -115,8 +115,7 @@ inline void setCurrentFrame( kdlib::StackFramePtr& stackFrame) { inline void setCurrentFrameByIndex( unsigned long frameIndex) { AutoRestorePyState pystate; - kdlib::StackFramePtr stackFrame = kdlib::getStack()->getFrame(frameIndex); - kdlib::setCurrentStackFrame(stackFrame); + kdlib::setCurrentStackFrameByIndex(frameIndex); } inline void resetCurrentFrame() {