3 ms·
I’m curious if a msealed region can have breakpoints placed in it.
by saagarjha 2y ago
I’m curious if a msealed region can have breakpoints placed in it.
- snickerbockers 2y agothat's an interesting point. i know at the kernel level gdb supports hardware breaks that don't need to add in the trap instruction but I'm not sure if those are available to user-mode processes.
- bonzini 2y agoYes, gdb sets them with ptrace when debugging other user mode processes.
- ilammy 2y agoYes, breakpoints will still work. Debuggers generally use POKETEXT to write breakpoints, which ignores any write protection on pages. mseal does not affect this use case.