fix(debug): hardware watchpoints, signal stops and breakpoint restore
Assisted-by: GLM 5.3
This commit is contained in:
@@ -91,5 +91,9 @@ func (r *Regs) RegValue(name string) (uint64, bool) {
|
||||
// breakpointInsn is the software breakpoint instruction.
|
||||
var breakpointInsn = []byte{0xCC} // INT3
|
||||
|
||||
// breakpointPCAdjust is how far PC is past the breakpoint instruction after a trap.
|
||||
// breakpointPCAdjust is how far PC is past the breakpoint instruction after
|
||||
// a trap. x86-64 reports the #DB for INT3 with RIP on the byte after the
|
||||
// INT3 (Intel SDM vol 3, "Debug Exceptions"), so the trap address is
|
||||
// PC-1. The other supported architectures leave the PC on the trap
|
||||
// instruction and use 0 there.
|
||||
const breakpointPCAdjust = 1
|
||||
|
||||
Reference in New Issue
Block a user