delve/service/debugger
aarzilli 21be59469a proc: cache entire frame in FrameToScope instead of variablesByTag
Caching the frame in variablesByTag is problematic:

1. accounting for variables that are (partially) stored in registers is
complicated (see issue #1106)
2. for some types (strings, interfaces...) simply creating the Variable
object reads memory, which therefore happens before we can do any
caching.

Instead cache the entire frame when the EvalScope object is created.
The cached range is between the SP value of the current frame and the
CFA of the preceeding frame, if available, or the CFA of the current
frame otherwise.

Fixes #1106
2018-04-23 10:13:21 -07:00
..
debugger_darwin.go Add support for Windows. 2016-01-20 19:06:31 -08:00
debugger_linux.go Fix various issues detected by megacheck (#880) 2017-06-29 11:15:59 -07:00
debugger_windows.go Add support for Windows. 2016-01-20 19:06:31 -08:00
debugger.go proc: cache entire frame in FrameToScope instead of variablesByTag 2018-04-23 10:13:21 -07:00
locations_test.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
locations.go debugger/locations: locspec "+0" should always evaluate to the current PC 2017-12-18 10:30:53 -08:00