mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	service,terminal: apply substitute path to trace/break argument
Change FindLocation to apply substitute path rules to location expressions. Changes terminal to always print paths after applying substitutions. Implements #2203
This commit is contained in:
		 aarzilli
					aarzilli
				
			
				
					committed by
					
						 Alessandro Arzilli
						Alessandro Arzilli
					
				
			
			
				
	
			
			
			 Alessandro Arzilli
						Alessandro Arzilli
					
				
			
						parent
						
							6ab6929b9a
						
					
				
				
					commit
					db93049813
				
			| @ -130,7 +130,7 @@ type Client interface { | ||||
| 	// * *<address> returns the location corresponding to the specified address | ||||
| 	// NOTE: this function does not actually set breakpoints. | ||||
| 	// If findInstruction is true FindLocation will only return locations that correspond to instructions. | ||||
| 	FindLocation(scope api.EvalScope, loc string, findInstruction bool) ([]api.Location, error) | ||||
| 	FindLocation(scope api.EvalScope, loc string, findInstruction bool, substitutePathRules [][2]string) ([]api.Location, error) | ||||
|  | ||||
| 	// Disassemble code between startPC and endPC | ||||
| 	DisassembleRange(scope api.EvalScope, startPC, endPC uint64, flavour api.AssemblyFlavour) (api.AsmInstructions, error) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user