mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00

[+] bp without callback - always break when triggered, goLib - demo for this case [+] python thread restore for dbgCommand [~] remove trailing blanks git-svn-id: https://pykd.svn.codeplex.com/svn@69510 9b283d60-5439-405e-af05-b73fd8c4d996
47 lines
902 B
C++
47 lines
902 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
#include "dbgext.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
class dbgBreakpointClass {
|
|
|
|
public:
|
|
|
|
dbgBreakpointClass( ULONG64 offset, boost::python::object &callback );
|
|
dbgBreakpointClass( ULONG64 offset );
|
|
|
|
~dbgBreakpointClass();
|
|
|
|
bool
|
|
set();
|
|
|
|
void
|
|
remove();
|
|
|
|
std::string
|
|
print() const;
|
|
|
|
private:
|
|
|
|
ULONG64 m_offset;
|
|
|
|
IDebugBreakpoint *m_breakpoint;
|
|
|
|
boost::python::object m_callback;
|
|
|
|
private:
|
|
|
|
typedef std::map<IDebugBreakpoint*, dbgBreakpointClass*> breakpointMap;
|
|
static breakpointMap m_breakMap;
|
|
|
|
public:
|
|
|
|
static HRESULT onBreakpointEvnet( IDebugBreakpoint* bp );
|
|
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|