mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	 f6e8fb37a4
			
		
	
	f6e8fb37a4
	
	
	
		
			
			* proc: changed windows backend to deal with simultaneous breakpoints * bugfix: forgot to add windowsPrologue3 to the prologues list in e4c7df1 * Tolerate errors returned by Stacktrace in TestStacktraceGoroutine. * bugfix: proc: propagate debug events we don't cause back to the target process Fixes: #594 * proc: fixed TestStepConcurrentPtr Implementation of nextInProgress was wrong.
		
			
				
	
	
		
			23 lines
		
	
	
		
			235 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			235 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package main
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 	"runtime"
 | |
| )
 | |
| 
 | |
| func dontsegfault() {
 | |
| 	var p *int
 | |
| 	func() int {
 | |
| 		defer func() {
 | |
| 			recover()
 | |
| 		}()
 | |
| 		return *p
 | |
| 	}()
 | |
| }
 | |
| 
 | |
| func main() {
 | |
| 	dontsegfault()
 | |
| 	runtime.Breakpoint()
 | |
| 	fmt.Println("should stop here")
 | |
| }
 |