mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 18:57:18 +08:00 
			
		
		
		
	 aarzilli
		
	
	7bec20e5fc
	
	
	proc: avoid scanning system stack if it's not executing cgo
			aarzilli
		
	
	7bec20e5fc
	
	
	proc: avoid scanning system stack if it's not executing cgo
		
			
			The runtime calls into g0 in many places, not necessarily using runtime.systemstack or runtime.asmcgocall. One example of this is the call to runtime.newstack inside runtime.morestack. If we stop the process while one goroutine is executing runtime.newstack we would be unable to fully scan its stack because we don't know that we have to switch back to the goroutine stack after runtime.newstack. Instead of tracking down every possible way that the runtime switches to g0 we switch to the goroutine stack immediately after the top of the stack, unless cgo is being executed on the systemstack. Fixes #1066
The Github issue tracker is for bugs only. Please use the developer mailing list for any feature proposals and discussions.
About Delve
Delve is a debugger for the Go programming language. The goal of the project is to provide a simple, full featured debugging tool for Go. Delve should be easy to invoke and easy to use. Chances are if you're using a debugger, things aren't going your way. With that in mind, Delve should stay out of your way as much as possible.
					Languages
				
				
								
								
									Go
								
								97.1%
							
						
							
								
								
									C
								
								2.3%
							
						
							
								
								
									Shell
								
								0.2%
							
						
							
								
								
									PowerShell
								
								0.1%
							
						
							
								
								
									Starlark
								
								0.1%
							
						
							
								
								
									Other
								
								0.1%
							
						
					