Skip to content

mmeshi/hw-breakpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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