delve/pkg/proc/gdbserial
Alessandro Arzilli 200994bc8f
proc/*: only load floating point registers when needed (#1981)
Changes implementations of proc.Registers interface and the
op.DwarfRegisters struct so that floating point registers can be loaded
only when they are needed.
Removes the floatingPoint parameter from proc.Thread.Registers.
This accomplishes three things:

1. it simplifies the proc.Thread.Registers interface
2. it makes it impossible to accidentally create a broken set of saved
   registers or of op.DwarfRegisters by accidentally calling
   Registers(false)
3. it improves general performance of Delve by avoiding to load
   floating point registers as much as possible

Floating point registers are loaded under two circumstances:

1. When the Slice method is called with floatingPoint == true
2. When the Copy method is called

Benchmark before:

BenchmarkConditionalBreakpoints-4   	       1	4327350142 ns/op

Benchmark after:

BenchmarkConditionalBreakpoints-4   	       1	3852642917 ns/op

Updates #1549
2020-05-13 11:56:50 -07:00
..
gdbserver_conn.go *: un-export unnecessarily public symbols 2020-03-31 14:47:29 -07:00
gdbserver_unix.go *: FreeBSD initial support (#1480) 2019-07-12 18:28:04 -07:00
gdbserver_windows.go proc/native,proc/gdbserial: ignore SIGTTIN, SIGTTOU when fg'ing target 2018-07-31 12:05:54 -07:00
gdbserver.go proc/*: only load floating point registers when needed (#1981) 2020-05-13 11:56:50 -07:00
rr_test.go pkg/proc: Move proc exec funcs to Target methods 2020-03-25 17:45:12 +01:00
rr.go *: un-export unnecessarily public symbols 2020-03-31 14:47:29 -07:00