mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 12:59:01 +08:00
*: switch to int64 for goroutine IDs (#3110)
Go 1.20 switched to uint64 to represent goroutine IDs, we can't actually follow suit because we have allowed clients to use -1 to refer to the currently selected goroutine, however we should at least switch to int64 and also update the rtype check to accept the 1.20 type.
This commit is contained in:
committed by
GitHub
parent
0c09fc9bdd
commit
5b9f65dac2
@ -89,7 +89,7 @@ func (s *RPCServer) StacktraceGoroutine(args *StacktraceGoroutineArgs, locations
|
||||
if args.Full {
|
||||
loadcfg = &defaultLoadConfig
|
||||
}
|
||||
locs, err := s.debugger.Stacktrace(args.Id, args.Depth, 0)
|
||||
locs, err := s.debugger.Stacktrace(int64(args.Id), args.Depth, 0)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user