-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbreakpoint.hpp
35 lines (27 loc) · 1 KB
/
breakpoint.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <windows.h>
#include <winnt.h>
#include <map>
#include <utility>
#include "disassembler.h"
using std::pair;
using std::map;
class Breakpoint{
public:
Breakpoint() { }
void setUser(DWORD address);
bool setUser(DWORD address, PROCESS_INFORMATION &pi, Disassembler &d);
void setAllUser(PROCESS_INFORMATION &pi, Disassembler &d);
bool setInvisible(DWORD address, PROCESS_INFORMATION &pi, Disassembler &d);
bool addrPresentUser(DWORD address);
void deleteUser(DWORD address, PROCESS_INFORMATION &pi);
void deleteInvisible(PROCESS_INFORMATION &pi);
void DeleteAllUserbp(PROCESS_INFORMATION &pi, bool existDebuggee);
void listAllUser();
const map<DWORD,BYTE> GetMap() const;
const pair<DWORD,BYTE> GetPair() const;
private:
map<DWORD,BYTE> Userbp; //contient tout les breakpoint set//
pair<DWORD,BYTE> Bpinvisible; //contient l'unique breakpoint "invisible" (sert au step)
bool set(DWORD address, PROCESS_INFORMATION &pi, Disassembler &d, bool user);
};