delve/pkg/terminal
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
..
colorize all: replace deprecated io/ioutil with io and os (#3509) 2023-09-25 11:41:59 -07:00
starbind pkg,service: remove unnecessary convertions (#3564) 2023-11-14 16:36:55 +01:00
command_test.go proc: make some type casts less counterintuitive 2023-12-12 11:43:41 -08:00
command.go proc: fix dynamic library loading with musl loader (#3621) 2024-01-10 07:33:35 -08:00
config.go terminal: clear substitute path rules cache when config is used (#3567) 2023-11-16 10:43:23 -08:00
disasmprint.go terminal: add ability to show disassembly instead of source (#3047) 2022-07-14 14:08:47 -07:00
docgen.go pkg,service: make receiver names consistent (#3473) 2023-08-17 14:24:43 -07:00
groups.go terminal: divide commands into categories 2020-03-09 10:11:21 -07:00
out_unix.go all: remove obsolete build tags "// +build" (#3513) 2023-10-03 08:50:11 -07:00
out_windows.go terminal: use exact window size for pager (#3249) 2023-01-16 09:20:43 -08:00
out.go terminal: use exact window size for pager (#3249) 2023-01-16 09:20:43 -08:00
starlark_test.go pkg,service: refactor to use %q instead of "%s" (#3430) 2023-07-05 08:49:08 -07:00
starlark.go *: Fix go vet complaints (#1935) 2020-03-18 09:25:32 -07:00
terminal_other.go all: remove obsolete build tags "// +build" (#3513) 2023-10-03 08:50:11 -07:00
terminal_test.go *: misc improvements to config command and substitute-path rules (#3335) 2023-05-02 12:23:59 -07:00
terminal_windows.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
terminal.go service/debugger,terminal: API and user interface for follow exec mode (#3286) 2023-04-24 14:37:31 -07:00