delve/pkg/terminal
Alessandro Arzilli 57dad9342a
proc: make some type casts less counterintuitive
* proc: make some type casts less counterintuitive

The interaction of type casts with load configuration is sometimes
counterintuitive. This commit changes the way it is performed so that
when converting slices to strings and vice versa the maximum size
corresponding to the target type is used (i.e. MaxStringLen when
converting slices to strings and MaxArrayValues when converting slices
to strings).

This doesn't fully solve the problem (conversions to []rune are
problematic and multiple chained type casts will still be confusing)
but removes the problem for the majority of practical uses.

Fixes #3595, #3539
2023-12-12 11:43:41 -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 pkg/terminal: support vscode in edit command (#3524) 2023-10-09 17:58:21 +02: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