libmem icon indicating copy to clipboard operation
libmem copied to clipboard

Feature request: add (remove) hardware breakpoints to threads (possible Debug API)

Open joylin1984 opened this issue 2 years ago • 3 comments

Function request: add (remove) hardware breakpoints to threads.

This can achieve HWBP HOOK.

joylin1984 avatar Dec 13 '23 19:12 joylin1984

This topic could be expanded further into a Debug API (I tried to do it in the past, but it didn't go very well - I could try again though). E.g:

LM_DbgAttach
LM_DbgDetach
LM_DbgReadRegs
LM_DbgWriteRegs
LM_DbgBreakpoint
LM_DbgHwBreakpoint
// ...

rdbo avatar Dec 13 '23 23:12 rdbo

I've done a PoC for Linux here: https://github.com/rdbo/ptrace-breakpoint-parent-test So yeah, this is definitely possible

rdbo avatar Dec 30 '23 15:12 rdbo

I don't know how this would go on Windows though, but it shouldn't be much different

rdbo avatar Dec 30 '23 15:12 rdbo