закешированный к нам в целях безопасности дебаггер
Go to file
Alessandro Arzilli 1a9e38aa0c
proc,terminal: Implement reverse step, next and stepout (#1785)
* proc: move defer breakpoint code into a function

Moves the code that sets a breakpoint on the first deferred function,
used by both next and StepOut, to its function.

* proc: implement reverse step/next/stepout

When the direction of execution is reversed (on a recording) Step, Next and
StepOut will behave similarly to their forward version. However there are
some subtle interactions between their behavior, prologue skipping, deferred
calls and normal calls. Specifically:

- when stepping backwards we need to set a breakpoint on the first
  instruction after each CALL instruction, once this breakpoint is reached we
  need to execute a single StepInstruction operation to reverse step into the
  CALL.
- to insure that the prologue is skipped reverse next needs to check if it
  is on the first instruction after the prologue, and if it is behave like
  reverse stepout.
- there is no reason to set breakpoints on deferred calls when reverse
  nexting or reverse stepping out, they will never be hit.
- reverse step out should generally place its breakpoint on the CALL
  instruction that created the current stack frame (which will be the CALL
  instruction immediately preceding the instruction at the return address).
- reverse step out needs to treat panic calls and deferreturn calls
  specially.

* service,terminal: implement reverse step, next, stepout
2020-03-11 15:40:41 -07:00
_fixtures pkg/proc,service: support linux/386 (#1884) 2020-03-10 09:34:40 -07:00
assets Add high-res images 2015-05-19 12:25:26 -05:00
cmd/dlv proc,terminal: Implement reverse step, next and stepout (#1785) 2020-03-11 15:40:41 -07:00
Documentation proc,terminal: Implement reverse step, next and stepout (#1785) 2020-03-11 15:40:41 -07:00
pkg proc,terminal: Implement reverse step, next and stepout (#1785) 2020-03-11 15:40:41 -07:00
scripts scripts: support macOS 10.15 or later 2020-02-24 09:30:47 -08:00
service proc,terminal: Implement reverse step, next and stepout (#1785) 2020-03-11 15:40:41 -07:00
vendor service/dap: Add panic guard to DAP handlers (#1895) 2020-02-25 21:00:54 -08:00
.cirrus.yml pkg/proc,service: support linux/386 (#1884) 2020-03-10 09:34:40 -07:00
.gitattributes makefile: use git's $Id$ instead of setting ver.Build in makefile (#807) 2017-04-28 10:14:33 -07:00
.gitignore git: Update gitignore 2015-10-20 20:55:11 -07:00
.travis.yml *: Add Go 1.14 to test matrix 2020-03-01 11:13:39 +01:00
appveyor.yml *: Missed go-delve renames 2019-01-04 11:21:33 -08:00
CHANGELOG.md *: Update CHANGELOG.md - fix v1.4.0's date being 2019 (#1861) 2020-02-12 08:59:18 -08:00
CONTRIBUTING.md README: Remove gitter chat link. 2020-01-21 09:06:53 -08:00
go.mod go.mod: remove unused dependencies, go mod tidy 2020-03-03 10:45:17 -08:00
go.sum go.mod: remove unused dependencies, go mod tidy 2020-03-03 10:45:17 -08:00
ISSUE_TEMPLATE.md misc: Include issue template for GitHub 2016-03-03 10:40:14 -08:00
LICENSE Add License and README 2014-05-03 15:31:52 -05:00
Makefile *: Fix typo in Makefile (#1869) 2020-02-18 10:02:04 -08:00
README.md *: Update AppVeyor badge 2020-01-22 11:55:30 +01:00

Delve

license GoDoc Build Status Build status

The GitHub issue tracker is for bugs only. Please use the developer mailing list for any feature proposals and discussions.

About Delve

Delve is a debugger for the Go programming language. The goal of the project is to provide a simple, full featured debugging tool for Go. Delve should be easy to invoke and easy to use. Chances are if you're using a debugger, things aren't going your way. With that in mind, Delve should stay out of your way as much as possible.