go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.38k stars 2.13k forks source link

pkg/proc: fix watchpoints on macos #3703

Closed derekparker closed 2 months ago

derekparker commented 2 months ago

It seems newer MacOS kernels are sending mach exceptions for watchpoints which contain the hardware register number as opposed to the address which triggered the exception. Also, ARM64 seems to have switched to sending _EXC_I386_SGL as medata[0] for this exception type.

derekparker commented 2 months ago

Marking as draft as I'm still iterating on this.