mirror of
				https://github.com/go-delve/delve.git
				synced 2025-11-01 03:42:59 +08:00 
			
		
		
		
	proc: allow simultaneous call injection to multiple goroutines (#1591)
* proc: allow simultaneous call injection to multiple goroutines Changes the call injection code so that we can have multiple call injections going on at the same time as long as they happen on distinct goroutines. * proc: fix EvalExpressionWithCalls for constant expressions The lack of address of constant expressions would confuse EvalExpressionWithCalls Fixes #1577
This commit is contained in:
		 Alessandro Arzilli
					Alessandro Arzilli
				
			
				
					committed by
					
						 Derek Parker
						Derek Parker
					
				
			
			
				
	
			
			
			 Derek Parker
						Derek Parker
					
				
			
						parent
						
							55eed318fd
						
					
				
				
					commit
					dd4fd5dc9c
				
			| @ -1035,7 +1035,7 @@ func (c *Commands) call(t *Term, ctx callContext, args string) error { | ||||
| 		unsafe = true | ||||
| 		args = args[len(unsafePrefix):] | ||||
| 	} | ||||
| 	state, err := exitedToError(t.client.Call(args, unsafe)) | ||||
| 	state, err := exitedToError(t.client.Call(ctx.Scope.GoroutineID, args, unsafe)) | ||||
| 	c.frame = 0 | ||||
| 	if err != nil { | ||||
| 		printcontextNoState(t) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user