delve/pkg
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
..
astutil proc: when stepping set condition on thread ID if there is no curg (#3475) 2023-08-21 12:30:56 -07:00
config pkg,service/dap: use switch instead of ifs (#3576) 2023-11-22 09:07:08 -08:00
dwarf pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
elfwriter pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
gobuild all: replace deprecated io/ioutil with io and os (#3509) 2023-09-25 11:41:59 -07:00
goversion goversion: include pre-releases in VersionAfterOrEqual check (#3607) 2023-12-26 10:15:43 -08:00
internal/gosym pkg/proc: use gore to obtain info from stripped binaries (#3577) 2023-11-23 09:12:10 +01:00
locspec pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
logflags all: replace deprecated io/ioutil with io and os (#3509) 2023-09-25 11:41:59 -07:00
proc proc: fix dynamic library loading with musl loader (#3621) 2024-01-10 07:33:35 -08:00
terminal proc: fix dynamic library loading with musl loader (#3621) 2024-01-10 07:33:35 -08:00
version *: release version 1.22.0 (#3606) 2023-12-29 14:48:07 -08:00