delve/pkg/proc
Than McIntosh dceffacb89
pkg/proc: fix for file reference handling with DWARF 5 compilation units (#2327)
Add a helper method for collecting line table file references that
does the correct thing for DWARF 5 vs DWARF 4 (in the latter case you
have an implicit 0 entry which is the comp dir, whereas in the former
case you do not). This is to avoid out-of-bounds errors when examining
the file table section of a DWARF 5 compilation unit's line table.

Included is a new linux/amd-only test that includes a precompiled C
object file with a DWARF-5 section that triggers the bug in question.

Fixes #2319
2021-01-29 09:23:52 -08:00
..
amd64util proc: use CPUID to determine maximum size of XSAVE area (#2256) 2020-12-14 09:39:01 -08:00
core proc: refactor common code in WriteBreakpoint (#2300) 2021-01-27 07:27:54 -08:00
fbsdutil proc: use CPUID to determine maximum size of XSAVE area (#2256) 2020-12-14 09:39:01 -08:00
gdbserial proc: refactor common code in WriteBreakpoint (#2300) 2021-01-27 07:27:54 -08:00
linutil proc: use CPUID to determine maximum size of XSAVE area (#2256) 2020-12-14 09:39:01 -08:00
native proc: refactor common code in WriteBreakpoint (#2300) 2021-01-27 07:27:54 -08:00
test pkg/proc: fix for file reference handling with DWARF 5 compilation units (#2327) 2021-01-29 09:23:52 -08:00
winutil proc: correct minor typos (#2148) 2020-08-24 10:19:50 -07:00
amd64_arch.go Go 1.16 support branch (#2214) 2021-01-05 10:56:30 -08:00
amd64_disasm.go proc: convert Arch into a struct (#1972) 2020-03-30 11:03:29 -07:00
arch.go proc/native: fix flakyness of TestStepConcurrentDirect on linux/386 (#2179) 2020-11-03 10:28:37 -08:00
arm64_arch.go proc: correctly format ARM64 floating point registers (#2289) 2021-01-26 10:37:47 -08:00
arm64_disasm.go Go 1.15 support (#2011) 2020-07-28 09:19:51 -07:00
bininfo.go pkg/proc: fix for file reference handling with DWARF 5 compilation units (#2327) 2021-01-29 09:23:52 -08:00
breakpoints.go proc: refactor common code in WriteBreakpoint (#2300) 2021-01-27 07:27:54 -08:00
disasm.go proc/*: remove proc.Thread.Blocked, refactor memory access (#2206) 2020-11-09 11:28:40 -08:00
doc.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
dwarf_export_test.go proc: keep track of nesting depth while reading compile units 2020-07-16 15:34:00 +02:00
dwarf_expr_test.go proc: do not assume abstract origins precede their uses (#2293) 2021-01-27 06:58:48 -08:00
eval.go proc: remove dead code (#2321) 2021-01-27 06:54:50 -08:00
fncall.go proc: make nested function calls work when stopped at a sw breakpoint (#2232) 2020-12-10 09:03:11 -08:00
goroutine_cache.go proc/*,service: replace uses of uintptr with uint64 (#2163) 2020-09-09 10:36:15 -07:00
i386_arch.go proc/native: fix flakyness of TestStepConcurrentDirect on linux/386 (#2179) 2020-11-03 10:28:37 -08:00
i386_disasm.go proc: convert Arch into a struct (#1972) 2020-03-30 11:03:29 -07:00
interface.go proc: refactor common code in WriteBreakpoint (#2300) 2021-01-27 07:27:54 -08:00
mem.go proc/*,service: replace uses of uintptr with uint64 (#2163) 2020-09-09 10:36:15 -07:00
moduledata.go proc/*,service: replace uses of uintptr with uint64 (#2163) 2020-09-09 10:36:15 -07:00
pe.go pkg/proc,service: support linux/386 (#1884) 2020-03-10 09:34:40 -07:00
proc_general_test.go proc/*,service: replace uses of uintptr with uint64 (#2163) 2020-09-09 10:36:15 -07:00
proc_linux_test.go proc/*: add launch option to disable ASLR (#2202) 2020-10-21 12:50:52 -07:00
proc_test.go pkg/proc: fix for file reference handling with DWARF 5 compilation units (#2327) 2021-01-29 09:23:52 -08:00
proc_unexported_test.go proc: allow calls to optimized functions (#1684) 2019-09-25 10:23:02 -07:00
proc_unix_test.go native/proc/linux: wait for the target process to be killed in kill (#2280) 2020-12-28 09:08:47 -08:00
registers.go proc/*: only load floating point registers when needed (#1981) 2020-05-13 11:56:50 -07:00
scope_test.go pkg/proc: Move proc exec funcs to Target methods 2020-03-25 17:45:12 +01:00
stack.go pkg/proc: fix for file reference handling with DWARF 5 compilation units (#2327) 2021-01-29 09:23:52 -08:00
target_exec.go proc: add flag to distinguish ReturnValues (#2230) 2020-12-10 08:57:50 -08:00
target.go service/dap: support evaluate requests with expressions and calls (#2185) 2020-11-12 15:24:31 -08:00
threads.go proc: add flag to distinguish ReturnValues (#2230) 2020-12-10 08:57:50 -08:00
types.go proc: do not assume abstract origins precede their uses (#2293) 2021-01-27 06:58:48 -08:00
variable_test.go pkg/proc: Move proc exec funcs to Target methods 2020-03-25 17:45:12 +01:00
variables.go proc: remove dead code (#2321) 2021-01-27 06:54:50 -08:00
x86_disasm.go proc/*,service: replace uses of uintptr with uint64 (#2163) 2020-09-09 10:36:15 -07:00