
Adds the low-level support for watchpoints (aka data breakpoints) to the native linux/amd64 backend. Does not add user interface or functioning support for watchpoints on stack variables. Updates #279
23 lines
580 B
Go
23 lines
580 B
Go
package native
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/go-delve/delve/pkg/proc"
|
|
)
|
|
|
|
func (t *nativeThread) restoreRegisters(savedRegs proc.Registers) error {
|
|
return fmt.Errorf("restore regs not supported on i386")
|
|
}
|
|
|
|
func (t *nativeThread) writeHardwareBreakpoint(addr uint64, wtype proc.WatchType, idx uint8) error {
|
|
return proc.ErrHWBreakUnsupported
|
|
}
|
|
|
|
func (t *nativeThread) clearHardwareBreakpoint(addr uint64, wtype proc.WatchType, idx uint8) error {
|
|
return proc.ErrHWBreakUnsupported
|
|
}
|
|
|
|
func (t *nativeThread) findHardwareBreakpoint() (*proc.Breakpoint, error) {
|
|
return nil, nil
|
|
}
|