mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
proc/gdbserial: do not return floating point regs when not requested (#1497)
Fixes #1493
This commit is contained in:
committed by
Derek Parker
parent
0e1c742787
commit
14aeea2bd9
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user