add tracer header for ptrace watchpoint functionality
This commit is contained in:
parent
52d857ebbc
commit
50086968a7
16
src/tracer.hpp
Normal file
16
src/tracer.hpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#ifndef GWATCH_TRACER_HPP
|
||||||
|
#define GWATCH_TRACER_HPP
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
class Tracer {
|
||||||
|
public:
|
||||||
|
void watch_variable(const std::string &exec_path, uint64_t address, size_t size);
|
||||||
|
|
||||||
|
private:
|
||||||
|
void setup_hardware_watchpoint(pid_t pid, uint64_t address, size_t size);
|
||||||
|
void handle_watchpoint_hit(pid_t pid, uint64_t address);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Reference in New Issue
Block a user