delve/service
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
..
api proc/*: only load floating point registers when needed (#1981) 2020-05-13 11:56:50 -07:00
dap service/dap: Adds launch request support for program args (#2040) 2020-05-11 09:52:26 -07:00
debugger proc/*: only load floating point registers when needed (#1981) 2020-05-13 11:56:50 -07:00
rpc1 *: Consolidate service/debugger config 2020-04-14 21:02:38 +02:00
rpc2 *: Consolidate service/debugger config 2020-04-14 21:02:38 +02:00
rpccommon *: Consolidate service/debugger config 2020-04-14 21:02:38 +02:00
test proc/*: only load floating point registers when needed (#1981) 2020-05-13 11:56:50 -07:00
client.go proc/gdbserial,debugger: allow clients to stop a recording (#1890) 2020-03-24 09:09:28 -07:00
config.go cmd/dlv: Fix trace output (#2038) 2020-05-13 08:38:10 +02:00
listenerpipe.go cmd,service: in non-headless mode use an in-memory connection 2018-10-08 15:11:13 -07:00
rpccallback.go Replaced net/rpc with custom version 2016-07-02 12:16:06 +02:00
server.go cmd,service: remove temporary def of Server interface in func 2018-10-09 07:56:48 -07:00