cmd/viewcore: interactive mode support
This change implements an interactive mode and restructures the command
line so that the corefile argument is the first argument.
The following command starts an interactive shell for analysis of the
Providing a command in the following form, the viewcore invokes the
command directly rather than starting the interactive mode.
viewcore <corefile> <command>
This change uses github.com/chzyer/readline to provide shell-like
functionality. (TODO: vendor the package for reproducible build)
Reviewed-by: Heschi Kreinick <email@example.com>
Reviewed-by: Keith Randall <firstname.lastname@example.org>
1 file changed