mirror of
				https://github.com/go-delve/delve.git
				synced 2025-11-01 03:42:59 +08:00 
			
		
		
		
	Validate args to thread command
This commit is contained in:
		| @ -139,6 +139,9 @@ func threads(p *proctl.DebuggedProcess, ars ...string) error { | ||||
| } | ||||
|  | ||||
| func thread(p *proctl.DebuggedProcess, ars ...string) error { | ||||
| 	if len(ars) == 0 { | ||||
| 		return fmt.Errorf("you must specify a thread") | ||||
| 	} | ||||
| 	oldTid := p.CurrentThread.Id | ||||
| 	tid, err := strconv.Atoi(ars[0]) | ||||
| 	if err != nil { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Derek Parker
					Derek Parker