service/rpc2: correct ExamineMemory length error message (#3846)

The maximum length changed in 52405ba86bd9e14a2e643db391cbdebdcbdb3368.
This commit is contained in:
Michael Pratt 2024-10-31 11:26:47 -04:00 committed by GitHub
parent ac8b4718bd
commit ac14553fda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -981,7 +981,7 @@ const ExamineMemoryLengthLimit = 1 << 16
func (s *RPCServer) ExamineMemory(arg ExamineMemoryIn, out *ExaminedMemoryOut) error {
if arg.Length > ExamineMemoryLengthLimit {
return errors.New("len must be less than or equal to 1000")
return fmt.Errorf("len must be less than or equal to %d", ExamineMemoryLengthLimit)
}
Mem, err := s.debugger.ExamineMemory(arg.Address, arg.Length)
if err != nil {