delve/service/debugger
aarzilli 3f2335f289 debugger/locations: locspec "+0" should always evaluate to the current PC
So far we have evaluated the locspec "+0" the same way we evaluate all
"+n" locspecs, this means that we turn the current PC into a file:line
pair, then we turn back the file:line into a PC address.

Normally this is harmless, however all autogenerated code returns the
source position "<autogenerated>:1" which resolves back to the very
first autogenerated instruction in the code.

This messes up the behaviour of the "disassemble" command which uses
the locspec "+0" to figure out what code to disassemble if no arguments
are passed.

We should make +0 always resolve to the current PC (of the given scope)
so that clients can use +0 as a default locspec.
2017-12-18 10:30:53 -08: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 pkg/terminal: -offsets flag for stack command 2017-11-28 11:00:53 -08: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