mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-05-13 22:16:05 +08:00
[0.3.x] added : Breakpoint::getOffset method ( Return breakpoint's memory offset )
git-svn-id: https://pykd.svn.codeplex.com/svn@89459 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
3e03e588ef
commit
f4473c8d89
@ -106,70 +106,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
//class BreakpointBase
|
|
||||||
//{
|
|
||||||
//public:
|
|
||||||
// kdlib::DebugCallbackResult onHit() {
|
|
||||||
// return kdlib::DebugCallbackBreak;
|
|
||||||
// }
|
|
||||||
//};
|
|
||||||
//
|
|
||||||
//typedef kdlib::AutoBreakpoint<BreakpointBase> Breakpoint;
|
|
||||||
|
|
||||||
|
|
||||||
//class BaseBreakpoint {
|
|
||||||
//public:
|
|
||||||
// virtual kdlib::DebugCallbackResult onHit() = 0;
|
|
||||||
//};
|
|
||||||
|
|
||||||
|
|
||||||
//class Breakpoint
|
|
||||||
//{
|
|
||||||
//public:
|
|
||||||
//
|
|
||||||
// Breakpoint( kdlib::MEMOFFSET_64 offset ) {
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// //static kdlib::BreakpointPtr createSoftwareBreakpoint( kdlib::MEMOFFSET_64 offset ) {
|
|
||||||
// // return kdlib::BreakpointPtr( new kdlib::AutoBreakpoint<Breakpoint>(offset) );
|
|
||||||
// //}
|
|
||||||
//
|
|
||||||
// virtual kdlib::DebugCallbackResult onHit();
|
|
||||||
//
|
|
||||||
// static kdlib::BREAKPOINT_ID getId(kdlib::BreakpointPtr& bp) {
|
|
||||||
// AutoRestorePyState pystate;
|
|
||||||
// return bp->getId();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// static kdlib::MEMOFFSET_64 getOffset(kdlib::BreakpointPtr& bp) {
|
|
||||||
// AutoRestorePyState pystate;
|
|
||||||
// return bp->getOffset();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// static void remove(kdlib::BreakpointPtr& bp) {
|
|
||||||
// AutoRestorePyState pystate;
|
|
||||||
// return bp->remove();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// Breakpoint() {
|
|
||||||
// m_pystate = PyThreadState_Get();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//private:
|
|
||||||
//
|
|
||||||
// PyThreadState* m_pystate;
|
|
||||||
//};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
} // end namespace pykd
|
} // end namespace pykd
|
||||||
|
@ -914,6 +914,8 @@ BOOST_PYTHON_MODULE( pykd )
|
|||||||
.def( python::init<kdlib::MEMOFFSET_64, size_t, kdlib::ACCESS_TYPE>() )
|
.def( python::init<kdlib::MEMOFFSET_64, size_t, kdlib::ACCESS_TYPE>() )
|
||||||
.def("getId", &Breakpoint::getId,
|
.def("getId", &Breakpoint::getId,
|
||||||
"Return breakpoint ID" )
|
"Return breakpoint ID" )
|
||||||
|
.def("getOffset", &Breakpoint::getOffset,
|
||||||
|
"Return breakpoint's memory offset")
|
||||||
.def("remove", &Breakpoint::remove,
|
.def("remove", &Breakpoint::remove,
|
||||||
"Remove breakpoint" )
|
"Remove breakpoint" )
|
||||||
.def("onHit", &Breakpoint::onHit,
|
.def("onHit", &Breakpoint::onHit,
|
||||||
|
Loading…
Reference in New Issue
Block a user