delve/pkg/proc
Alessandro Arzilli 88380654fe
proc: fix dynamic library loading with musl loader (#3621)
With the glibc loader the link map entry for the static executable has
an empty name field and address equal to 0x0. This case was already
handled by the check in bininfo.go AddImage for names to be valid
paths.
With the musl loader however the first entry, corresponding to the
static executable, has a valid path with address equal to 0x0, since we
record a real address for the image corresponding to the static
executable this results in having two entries for the executable when
musl is used to link go programs.

Change the code scanning the debug link map so that the first entry is
skipped if it has address equal to zero.

Fixes #3617
2024-01-10 07:33:35 -08:00
..
amd64util all: remove obsolete build tags "// +build" (#3513) 2023-10-03 08:50:11 -07:00
core pkg,service/dap: use switch instead of ifs (#3576) 2023-11-22 09:07:08 -08:00
debuginfod debuginfod-find stderr may contain diagnostics; look at stdout only for filename (#3381) 2023-05-23 11:11:51 -07:00
evalop proc: allow evaluator to reference previous frames (#3534) 2023-10-24 18:57:39 +02:00
fbsdutil pkg/proc: fix and improve freebsd register handling (#3019) 2022-05-31 16:04:36 -07:00
gdbserial proc/gdbserial: refactor parsing of key-value pairs from gdb protocol (#3574) 2023-11-20 10:50:37 -08:00
internal/ebpf *: Correct spelling mistakes (#3555) 2023-11-06 07:55:44 -06:00
linutil proc: fix dynamic library loading with musl loader (#3621) 2024-01-10 07:33:35 -08:00
macutil all: remove obsolete build tags "// +build" (#3513) 2023-10-03 08:50:11 -07:00
native proc: fix TestIssue1101 flake (#3585) 2023-11-27 08:58:27 -08:00
test *: remove checks for TRAVIS env variable (#3568) 2023-11-16 10:42:41 -08:00
winutil pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
amd64_arch.go proc: simplify and generalize runtime.mallocgc workaround (#3571) 2023-11-20 10:43:15 -08:00
amd64_disasm.go pkg/proc: apply simplifycompositelit analysis fixes (#3236) 2023-01-03 08:13:28 -08:00
arch.go proc: simplify and generalize runtime.mallocgc workaround (#3571) 2023-11-20 10:43:15 -08:00
arm64_arch.go proc: simplify and generalize runtime.mallocgc workaround (#3571) 2023-11-20 10:43:15 -08:00
arm64_disasm.go pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
bininfo.go *: Use forked goretk/gore module (#3597) 2023-12-12 10:13:32 +01:00
breakpoints.go pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
disasm.go pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
doc.go *: run go1.19 'go fmt' on everything and fix problems (#3031) 2022-06-17 10:08:11 -07:00
dump.go *: add ppc64le support (#2963) 2023-07-07 09:30:38 -07:00
dwarf_export_test.go pkg/proc: pad variable mem in extractVarInfoFromEntry (#3365) 2023-05-15 14:46:33 -07:00
dwarf_expr_test.go pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
eval.go proc: fix TestCondBreakpointWithFrame flakes on 1.22rc1 (#3624) 2024-01-10 06:53:16 -08:00
fncall.go proc: simplify and generalize runtime.mallocgc workaround (#3571) 2023-11-20 10:43:15 -08:00
goroutine_cache.go pkg/proc: enable basic debug functionality for stripped ELF binaries (#3408) 2023-06-14 13:23:46 +02:00
i386_arch.go proc: fix stacktraces on freebsd/amd64/go1.20 (#3458) 2023-08-14 15:32:15 -07:00
i386_disasm.go dwarf,proc: fix typos in comments and error messages (#3379) 2023-05-23 18:22:20 +02:00
interface.go proc: move StepInstruction method to TargetGroup (#3488) 2023-09-20 09:17:45 +02:00
mem.go pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
moduledata.go proc: remove old method to resolve the type of an interface to a DIE (#3150) 2022-09-29 10:06:15 -07:00
pclntab.go pkg/proc: add inline function support for stripped binaries (#3549) 2023-11-03 10:00:49 +01:00
pe.go proc: fix typo 'unkown' => 'unknown' (#2473) 2021-05-10 11:36:03 -07:00
ppc64le_arch.go proc: simplify and generalize runtime.mallocgc workaround (#3571) 2023-11-20 10:43:15 -08:00
ppc64le_disasm.go *: update dependencies (#3552) 2023-11-04 17:07:55 +01:00
proc_amd64_test.go pkg/proc: unskip passing tests and reorganize (#3561) 2023-11-12 12:01:21 +01:00
proc_darwin_amd64_test.go pkg/proc: unskip passing tests and reorganize (#3561) 2023-11-12 12:01:21 +01:00
proc_darwin_test.go pkg/proc: unskip passing tests and reorganize (#3561) 2023-11-12 12:01:21 +01:00
proc_general_test.go pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
proc_linux_test.go TeamCity: speed up ppc64le CI (#3622) 2024-01-09 14:13:00 -08:00
proc_test.go TeamCity: speed up ppc64le CI (#3622) 2024-01-09 14:13:00 -08:00
proc_unexported_test.go proc: correctly truncate the result of binary ops on integers (#2463) 2021-05-17 10:31:05 -07:00
proc_unix_test.go all: remove obsolete build tags "// +build" (#3513) 2023-10-03 08:50:11 -07:00
redirect.go pkg/proc,service/*: Supports sending output to clients when running programs remotely (#3253) 2023-07-05 08:39:01 -07:00
redirector_other.go all: remove obsolete build tags "// +build" (#3513) 2023-10-03 08:50:11 -07:00
redirector_windows.go pkg,service: Remove redundant build constraints (#3556) 2023-11-06 16:22:50 +01:00
registers.go proc: support function call injection on arm64 (#2996) 2022-05-03 10:46:24 -07:00
scope_test.go chore: use strings.Contains instead (#3562) 2023-11-14 10:16:39 +01:00
stack_sigtramp.go pkg,service: fix typos in comments, exceptions, tests (#3486) 2023-08-29 14:44:18 +02:00
stack.go pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
stackwatch.go proc: when stepping set condition on thread ID if there is no curg (#3475) 2023-08-21 12:30:56 -07:00
target_exec.go proc: fix TestCondBreakpointWithFrame flakes on 1.22rc1 (#3624) 2024-01-10 06:53:16 -08:00
target_group.go proc: refactorings to implement follow-exec mode on Windows (#3441) 2023-08-28 12:46:19 -07:00
target.go pky/proc: enable function call injection in Delve for linux/ppc64le (#3449) 2023-09-21 10:39:57 -07:00
threads.go proc: move StepInstruction method to TargetGroup (#3488) 2023-09-20 09:17:45 +02:00
types.go pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
variable_test.go proc,proc/native: adds ability to automatically debug child processes (#3165) 2023-02-22 09:26:28 -08:00
variables_fuzz_test.go proc: use stack machine to evaluate expressions (#3508) 2023-10-17 11:21:59 -07:00
variables_test.go proc: fix TestPackageRenames on go1.22 on linux/386 (#3610) 2023-12-26 10:17:25 -08:00
variables.go pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
x86_disasm.go proc: remove duplicate Registers.Get implementations (#2415) 2021-04-28 10:00:26 -07:00