delve/service
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
..
api proc, terminal: use DW_AT_producer to warn user about optimized code 2017-12-13 12:18:18 -08:00
debugger debugger/locations: locspec "+0" should always evaluate to the current PC 2017-12-18 10:30:53 -08:00
rpc1 Fix various issues detected by megacheck (#880) 2017-06-29 11:15:59 -07:00
rpc2 pkg/terminal: -offsets flag for stack command 2017-11-28 11:00:53 -08:00
rpccommon Fix various issues detected by megacheck (#880) 2017-06-29 11:15:59 -07:00
test proc/test: miscellaneous test changes for go1.10 2017-12-13 12:18:18 -08:00
client.go proc/gdbserial: mozilla rr support (#804) 2017-05-05 15:17:52 -07:00
config.go dlv: make headless servers quit automatically when client disconnects (#895) 2017-06-26 11:45:13 -07:00
rpccallback.go Replaced net/rpc with custom version 2016-07-02 12:16:06 +02:00
server.go misc: cleanup and documentation 2016-01-10 02:10:51 -08:00