From 877968ca9227bed37ad08f07ce20f6ba7e5ef71f Mon Sep 17 00:00:00 2001 From: ussrhero Date: Mon, 29 Apr 2019 23:45:12 +0300 Subject: [PATCH] added : stackFrame::isInline method --- pykd/pycpucontext.h | 6 ++++++ pykd/pymod.cpp | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pykd/pycpucontext.h b/pykd/pycpucontext.h index 63fbd41..dc9b4c2 100644 --- a/pykd/pycpucontext.h +++ b/pykd/pycpucontext.h @@ -72,6 +72,12 @@ public: } static python::tuple findSymbol(kdlib::StackFramePtr& frame); + + static bool isInline(kdlib::StackFramePtr& frame) + { + AutoRestorePyState pystate; + return frame->isInline(); + } }; ///////////////////////////////////////////////////////////////////////////////// diff --git a/pykd/pymod.cpp b/pykd/pymod.cpp index 6cd189c..0de5f07 100644 --- a/pykd/pymod.cpp +++ b/pykd/pymod.cpp @@ -1117,10 +1117,8 @@ void pykd_init() "return the function's local variable by it's name") .def( "switchTo", StackFrameAdapter::switchTo, "Make this frame a current") - //.def( "isInline", StackFrameAdapter::isInline, - // "this virtual frame of inlined function" ) - //.def( "getFunciton", StackFrameAdapter::getFunction, - // "return instance of the typedVar class representing function") + .def( "isInline", StackFrameAdapter::isInline, + "this virtual frame of inlined function" ) .def( "findSymbol", StackFrameAdapter::findSymbol, "return symbol for frame's instruction pointer") //.def( "getSourceLine", StackFrameAdapter::getSourceLine,