mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			326 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			326 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package debugger
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| )
 | |
| 
 | |
| func attachErrorMessage(pid int, err error) error {
 | |
| 	return fmt.Errorf("could not attach to pid %d: %s", pid, err)
 | |
| }
 | |
| 
 | |
| func stopProcess(pid int) error {
 | |
| 	// We cannot gracefully stop a process on Windows,
 | |
| 	// so just ignore this request and let `Detach` kill
 | |
| 	// the process.
 | |
| 	return nil
 | |
| }
 | 
