proc/gdbserial: do not return floating point regs when not requested (#1497)

Fixes #1493
This commit is contained in:
Alessandro Arzilli
2019-02-26 17:53:45 +01:00
committed by Derek Parker
parent 0e1c742787
commit 14aeea2bd9
11 changed files with 47 additions and 18 deletions

View File

@ -830,7 +830,7 @@ func (d *Debugger) Registers(threadID int, floatingPoint bool) (api.Registers, e
if err != nil {
return nil, err
}
return api.ConvertRegisters(regs.Slice()), err
return api.ConvertRegisters(regs.Slice(floatingPoint)), err
}
func convertVars(pv []*proc.Variable) []api.Variable {