Skip to content

mmeshi/hw-breakpoint

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

hw-breakpoint

set hardware breakpoints programmaticaly - for windows x86/x64

Features

  • Works both on x86 and x64
  • Multithreaded: ability to break every existed thread (at BP registration time), and future thread

Usage

#include "breakpoint.h"

// let's assume you have variable "val" that you want to watch on it
SomeNativeType val;

// to set write breakpoint
HWBreakpoint::Set(&val, HWBreakpoint::Condition::Write);

// to set read and write breakpoint
HWBreakpoint::Set(&val, HWBreakpoint::Condition::ReadWrite);

// to clear the breakpoint
HWBreakpoint::Clear(&val);

// to cleanup all breakpoint
HWBreakpoint::ClearAll();

Credit

The accessing debug register code is based on https://github.com/mmorearty/hardware-breakpoints

About

Set hardware breakpoints programmaticaly - for windows x86/64

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages