mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	service/debugger: bugfix: error values can not be marshalled (#697)
This commit is contained in:
		 Alessandro Arzilli
					Alessandro Arzilli
				
			
				
					committed by
					
						 Derek Parker
						Derek Parker
					
				
			
			
				
	
			
			
			 Derek Parker
						Derek Parker
					
				
			
						parent
						
							fd1df948fa
						
					
				
				
					commit
					4dd627f669
				
			| @ -316,5 +316,5 @@ func (regs Registers) String() string { | |||||||
|  |  | ||||||
| type DiscardedBreakpoint struct { | type DiscardedBreakpoint struct { | ||||||
| 	Breakpoint *Breakpoint | 	Breakpoint *Breakpoint | ||||||
| 	Reason error | 	Reason     string | ||||||
| } | } | ||||||
|  | |||||||
| @ -135,7 +135,7 @@ func (d *Debugger) Restart() ([]api.DiscardedBreakpoint, error) { | |||||||
| 		if len(oldBp.File) > 0 { | 		if len(oldBp.File) > 0 { | ||||||
| 			oldBp.Addr, err = p.FindFileLocation(oldBp.File, oldBp.Line) | 			oldBp.Addr, err = p.FindFileLocation(oldBp.File, oldBp.Line) | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
| 				discarded = append(discarded, api.DiscardedBreakpoint{oldBp, err}) | 				discarded = append(discarded, api.DiscardedBreakpoint{oldBp, err.Error()}) | ||||||
| 				continue | 				continue | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user