delve/pkg/proc/gdbserial
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
..
gdbserver_conn_386.go Introduce TeamCity builds (#2298) 2021-01-18 07:48:06 -08:00
gdbserver_conn_amd64.go proc/gdbserial: Added support for darwin/arm64 using gdbserver (#2285) 2021-01-04 08:52:04 -08:00
gdbserver_conn_arm64.go proc/gdbserial: Added support for darwin/arm64 using gdbserver (#2285) 2021-01-04 08:52:04 -08:00
gdbserver_conn.go terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) 2021-01-29 13:39:33 -08:00
gdbserver_unix.go *: FreeBSD initial support (#1480) 2019-07-12 18:28:04 -07:00
gdbserver_windows.go proc/native,proc/gdbserial: ignore SIGTTIN, SIGTTOU when fg'ing target 2018-07-31 12:05:54 -07:00
gdbserver.go terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) 2021-01-29 13:39:33 -08:00
rr_test.go cmd,proc,terminal,debugger: Support default file descriptor redirects 2020-09-01 21:50:27 +02:00
rr.go *: Closer close and use assertNoError for testcase (#2204) 2020-10-19 14:44:04 -07:00