mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 18:57:18 +08:00 
			
		
		
		
	 58762685e3
			
		
	
	58762685e3
	
	
	
		
			
			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
 | |
| }
 |