delve/pkg/terminal
Alessandro Arzilli 2c1a822632
terminal,service,proc/*: adds dump command (gcore equivalent) (#2173)
* proc/core: off-by-one error reading ELF core files

core.(*splicedMemory).ReadMemory checked the entry interval
erroneously when dealing with contiguous entries.

* terminal,service,proc/*: adds dump command (gcore equivalent)

Adds the `dump` command that creates a core file from the target process.

Backends will need to implement a new, optional, method `MemoryMap` that
returns a list of mapped memory regions.
Additionally the method `DumpProcessNotes` can be implemented to write out
to the core file notes describing the target process and its threads. If
DumpProcessNotes is not implemented `proc.Dump` will write a description of
the process and its threads in a OS/arch-independent format (that only Delve
understands).

Currently only linux/amd64 implements `DumpProcessNotes`.

Core files are only written in ELF, there is no minidump or macho-o writers.

# Conflicts:
#	pkg/proc/proc_test.go
2021-01-29 13:39:33 -08:00
..
colorize terminal: Go syntax highlighting for listings (#2294) 2021-01-28 07:08:14 -08:00
starbind terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) 2021-01-29 13:39:33 -08:00
command_test.go service,terminal: apply substitute path to trace/break argument 2020-11-17 16:41:35 +01:00
command.go terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) 2021-01-29 13:39:33 -08:00
config.go pkg/config: add disassemble-flavor option for config 2020-04-23 12:10:05 -07:00
disasmprint.go *: un-export unnecessarily public symbols 2020-03-31 14:47:29 -07:00
docgen.go terminal: divide commands into categories 2020-03-09 10:11:21 -07:00
groups.go terminal: divide commands into categories 2020-03-09 10:11:21 -07:00
starlark_test.go test: skip failed tests on arm64 2019-11-27 11:07:31 -08:00
starlark.go *: Fix go vet complaints (#1935) 2020-03-18 09:25:32 -07:00
terminal_other.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
terminal_test.go terminal: prompt to kill remote if process exited (#1621) 2019-07-17 15:54:15 -07:00
terminal_windows.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
terminal.go terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) 2021-01-29 13:39:33 -08:00