delve/pkg/proc
Sergio Lopez 774b5c7ce2 proc: add support for separate debug info
To save disk space, some distributions strip the debugging information
from the binaries, putting it in separate files, usually distributed in
separate packages.

To locate the file containing the debug information for a certain
binary, an ELF note named ".note.gnu.build-id" is added to the latter,
which contains a header and a build identification. This identification
can be used to compose a path with this form:

/usr/lib/debug/.build-id/BUILDID[:2]/BUILDID[2:].debug

With this patch, if Delve can't find the debug information in the main
binary, it'll try to locate and parse ".note.gnu.build-id", to compose
and attempt to open a path with the format described above.

Fixes #1206
2018-06-21 11:08:00 -07:00
..
core proc,service: display return values when stepping out of a function 2018-06-12 11:35:56 +02:00
gdbserial proc,service: display return values when stepping out of a function 2018-06-12 11:35:56 +02:00
native proc,service: display return values when stepping out of a function 2018-06-12 11:35:56 +02:00
test proc,command: fix optimized function warning in 1.9 2018-06-20 07:56:32 -07:00
arch.go proc: handle new way of panic'ing in 1.11 2018-06-11 11:09:02 -07:00
bininfo.go proc: add support for separate debug info 2018-06-21 11:08:00 -07:00
breakpoints.go proc,service: display return values when stepping out of a function 2018-06-12 11:35:56 +02:00
disasm_amd64.go proc,dwarf/line: support is_stmt and prologue_end flags 2018-06-11 11:09:02 -07:00
disasm.go proc,vendor: show global variables in disassembly 2018-03-22 10:01:00 -07:00
doc.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
dwarf_expr_test.go proc: support inlining 2018-03-26 14:30:38 -04:00
eval.go proc: allow "package/path".varname syntax 2018-06-14 09:29:23 -07:00
interface.go proc,service: display return values when stepping out of a function 2018-06-12 11:35:56 +02:00
mem.go proc: change memCache to delay reading 2018-04-23 10:13:21 -07:00
moduledata.go proc: use new extended attribute to resolve concrete type of interfaces 2018-06-11 11:09:02 -07:00
proc_general_test.go proc: change memCache to delay reading 2018-04-23 10:13:21 -07:00
proc_test.go proc,command: fix optimized function warning in 1.9 2018-06-20 07:56:32 -07:00
proc_unix_test.go proc: remove proc.Process.Kill 2018-03-06 09:06:19 -08:00
proc.go proc,service: display return values when stepping out of a function 2018-06-12 11:35:56 +02:00
registers_amd64.go pkg/proc, pkg/dwarf/op: support DW_OP_piece, DW_OP_regX, DW_OP_fbreg 2017-11-21 11:51:02 -08:00
registers.go proc: refactor stack.go to use DWARF registers 2017-11-17 10:17:24 -08:00
scope_test.go proc: support inlining 2018-03-26 14:30:38 -04:00
stack.go proc: handle new way of panic'ing in 1.11 2018-06-11 11:09:02 -07:00
threads.go proc,service: display return values when stepping out of a function 2018-06-12 11:35:56 +02:00
types.go proc,command: fix optimized function warning in 1.9 2018-06-20 07:56:32 -07:00
variable_test.go Extend the "frame" command to set the current frame. (#1110) 2018-03-22 10:02:15 -07:00
variables.go proc: in go1.11 runtime.g.waitreason is not a string 2018-06-11 11:09:02 -07:00