delve/pkg
Luis Gabriel Gomez 69615b3604
service/dap: Support for replay and core modes (#2367)
This PR aims to add support for rr replay and core actions from the DAP layer. This basically encloses the following:
New launch modes: replay and core

The following modes are added:

    replay: Replays an rr trace, allowing backwards flows (reverse continue and stepback). Requires a traceDirPath property on launch.json pointing to a valid rr trace directory.
    Equivalent to dlv replay <tracedir> command.
    core: Replays a core dump file, showing its callstack and the file matching the callsite. Requires a coreFilePath property on launch.json pointing to a valid coredump file.
    Equivalent to dlv core <exe> <corefile> command.

Dependencies

To achieve this the following additional changes were made:

    Implement the onStepBackRequest and onReverseContinueRequest methods on service/dap
    Adapt onLaunchRequest with the requried validations and logic for these new modes
    Use CapabilitiesEvent responses to enable the StepBack controls on the supported scenarios (see dicussion here)
    Add the corresponding launch.json support on vs code: 

Support for replay and core modes golang/vscode-go#1268
2021-07-21 07:38:04 -07:00
..
astutil proc: simplify next/step/stepout condition code 2020-04-04 11:00:54 -07:00
config terminal: Go syntax highlighting for listings (#2294) 2021-01-28 07:08:14 -08:00
dwarf proc,dwarf: Improve DWARF v5 support (#2544) 2021-06-22 13:37:46 +02:00
elfwriter terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) 2021-01-29 13:39:33 -08:00
gobuild service/dap: move build error to output event (#2482) 2021-05-17 09:13:25 -07:00
goversion *: Release 1.7.0 (#2591) 2021-07-16 15:31:52 +02:00
locspec locspec,proc: improve documentation (#2338) 2021-02-10 09:31:37 -08:00
logflags service/rpccommon: log error for conns rejected by --only-same-user (#2211) 2020-10-22 08:23:55 -07:00
proc service/dap: Support for replay and core modes (#2367) 2021-07-21 07:38:04 -07:00
terminal terminal,service: Add filtering and grouping to goroutines command (#2504) 2021-07-01 11:25:33 -07:00
version *: Release 1.7.0 (#2591) 2021-07-16 15:31:52 +02:00