github.com/undoio/delve@v1.9.0/pkg/proc/native/hwbreak_other.go (about)

     1  //go:build (linux && 386) || (darwin && arm64)
     2  // +build linux,386 darwin,arm64
     3  
     4  package native
     5  
     6  import (
     7  	"errors"
     8  
     9  	"github.com/undoio/delve/pkg/proc"
    10  )
    11  
    12  func (t *nativeThread) findHardwareBreakpoint() (*proc.Breakpoint, error) {
    13  	return nil, errors.New("hardware breakpoints not supported")
    14  }
    15  
    16  func (t *nativeThread) writeHardwareBreakpoint(addr uint64, wtype proc.WatchType, idx uint8) error {
    17  	return errors.New("hardware breakpoints not supported")
    18  }
    19  
    20  func (t *nativeThread) clearHardwareBreakpoint(addr uint64, wtype proc.WatchType, idx uint8) error {
    21  	return errors.New("hardware breakpoints not supported")
    22  }