1. 25 9月, 2021 2 次提交
  2. 13 9月, 2021 1 次提交
  3. 24 8月, 2021 1 次提交
  4. 21 8月, 2021 1 次提交
  5. 10 8月, 2021 1 次提交
    • A
      proc,terminal,service: support stack watchpoints (#2521) · 4264bf00
      Alessandro Arzilli 提交于
      * terminal,service: add way to see internal breakpoints
      
      Now that Delve has internal breakpoints that survive for long periods
      of time it will be useful to have an option to display them.
      
      * proc,terminal,service: support stack watchpoints
      
      Adds support for watchpoints on stack allocated variables.
      
      When a stack variable is watched, in addition to the normal watchpoint
      some support breakpoints are created:
      
      - one breakpoint inside runtime.copystack, used to adjust the address
        of the watchpoint when the stack is resized
      - one or more breakpoints used to detect when the stack variable goes
        out of scope, those are similar to the breakpoints set by StepOut.
      
      Implements #279
      4264bf00
  6. 31 7月, 2021 1 次提交
  7. 28 7月, 2021 2 次提交
    • D
      Documentation: Improve help output for examinemem (#2623) · 56731bd8
      Derek Parker 提交于
      Before this change when you typed `help` at the Delve prompt you would
      only see the following:
      
      ```
      examinemem (alias: x)  Examine memory:
      ```
      
      Now with this patch the output is more descriptive:
      
      ```
      examinemem (alias: x)  Examine raw memory at the given address.
      ```
      56731bd8
    • H
      cmd/dlv: dlv version --verbose (#2615) · 26e7f67c
      Hyang-Ah Hana Kim 提交于
      * cmd/dlv: dlv version --verbose
      
      That prints out runtime/debug.BuildInfo read from the dlv binary.
      Users can retrieve the same info using `go version -m <path_to_dlv>`
      but I think it is convenient to have.
      
      If dlv was built from cloned delve repo:
      
      ```
      $ ./dlv version -v
      Delve Debugger
      Version: 1.7.0
      Build: $Id: e353a65161e6ed74952b96bbb62ebfc56090832b $
      Build Details: go1.16.5
       mod    github.com/go-delve/delve       (devel)
       dep    github.com/cosiner/argv v0.1.0  h1:BVDiEL32lwHukgJKP87btEPenzrrHUjajs/8yzaqcXg=
      ...
      ```
      
      If dlv was built with `go install github.com/go-delve/delve@latest`
      with go1.16+, or
      `GO111MODULE=on go get github.com/go-delve/delve@latest`
      from a clean main module:
      
      ```
      $ ./dlv version -v
      Delve Debugger
      Version: 1.7.0
      Build: $Id: e353a65161e6ed74952b96bbb62ebfc56090832b $
      Build Details: go1.16.5
       mod    github.com/go-delve/delve       v1.7.0
       dep    github.com/cosiner/argv v0.1.0  h1:BVDiEL32lwHukgJKP87btEPenzrrHUjajs/8yzaqcXg=
      ...
      ```
      
      * remove an accidentally added bogus test
      26e7f67c
  8. 23 7月, 2021 2 次提交
    • H
      all: update github.com/spf13/cobra to v1.1.3 (#2572) · f74b7a6e
      Hyang-Ah Hana Kim 提交于
      This removes indirect dependencies from go.mod, and
      includes the fix for the missing -help flag info.
      
      The latest cobra release is v1.2.1. Given that there were
      minor security-related dependency cleanup during v1.2 release,
      I was tempted to pick up the latest version, but that caused
      dependency updates in golang.org/x/sys and golang.org/x/tools
      which may be too recent (golang.org/x/* follow the go's release
      support policy, so recent versions may not be compatible with
      go versions beyond go's official version support policy).
      
      Verified that dlv still builds with go1.12.x.
      (go1.12 is the oldest version of go that can build the latest delve already).
      
      $ go get -d github.com/spf13/cobra@v1.1.3
      $ go mod tidy
      $ go mod vendor
      $ go run _scripts/gen-usage-docs.go
      f74b7a6e
    • A
      terminal: improve 'on' command (#2556) · 89890735
      Alessandro Arzilli 提交于
      * terminal: improve 'on' command
      
      Adds the ability to edit the list of commands executed after stopping
      on a breakpoint, as well as converting a breakpoint into a tracepoint
      and vice versa.
      
      Prior to this it was possible to add commands to a breakpoint but
      removing commands or changing a breakpoint into a tracepoint, or vice
      versa, could only be done by removing and recreating the breakpoint.
      89890735
  9. 21 7月, 2021 1 次提交
    • L
      service/dap: Support for replay and core modes (#2367) · 69615b36
      Luis Gabriel Gomez 提交于
      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
      69615b36
  10. 17 7月, 2021 1 次提交
  11. 03 7月, 2021 1 次提交
  12. 02 7月, 2021 1 次提交
    • A
      terminal,service: Add filtering and grouping to goroutines command (#2504) · 7c821642
      Alessandro Arzilli 提交于
      Adds filtering and grouping to the goroutines command.
      
      The current implementation of the goroutines command is modeled after
      the threads command of gdb. It works well for programs that have up to
      a couple dozen goroutines but becomes unusable quickly after that.
      
      This commit adds the ability to filter and group goroutines by several
      different properties, allowing a better debugging experience on
      programs that have hundreds or thousands of goroutines.
      7c821642
  13. 29 6月, 2021 1 次提交
  14. 03 6月, 2021 1 次提交
  15. 26 5月, 2021 2 次提交
  16. 25 5月, 2021 2 次提交
  17. 21 5月, 2021 1 次提交
  18. 18 5月, 2021 1 次提交
    • A
      pkg/proc/native/linux: fix target crashes induced by RequestManualStop (#2484) · d2bca7a3
      Alessandro Arzilli 提交于
      A RequestManualStop received while the target program is stopped can
      induce a crash when the target is restarted.
      This is caused by the phantom breakpoint detection that was introduced
      in PR #2179 / commit e69d536e.
      Instead of always interpreting an unexplained SIGTRAP as a phantom
      breakpoint memorize all possible unreported breakpoint hits and only
      act on it when the thread hasn't moved from one.
      
      Also clarifies the behavior of the halt command when it is received
      while the target is stopped or in the process of stopping.
      d2bca7a3
  19. 07 5月, 2021 1 次提交
  20. 05 5月, 2021 2 次提交
  21. 04 5月, 2021 1 次提交
  22. 27 4月, 2021 1 次提交
    • F
      examinememory: evaluate addr as expression (#2385) · 7bf5482b
      Felix Geisendörfer 提交于
      * examinememory: evaluate addr as expression
      
      This makes it easy to read memory locations at an offset of a known
      address, e.g.:
      
      x 0xc000046800 + 32
      
      * use feedback from @aarzilli
      
      - expression mode is now enabled via -x flag
      - support "-x var", "-x &var" in addition to "-x <addr expr>"
      - some refactoring
      
      * add test cases
      
      * deal with double spaces
      
      * update docs
      
      * add new failing test
      
      * fix docs
      
      * simplify implementation, update test & docs
      
      * Fix docs
      7bf5482b
  23. 13 4月, 2021 2 次提交
  24. 03 4月, 2021 1 次提交
  25. 26 3月, 2021 1 次提交
  26. 20 3月, 2021 1 次提交
    • Á
      *: Adds toggle command (#2208) · f5d2e132
      Álex Sáez 提交于
      * Adds toggle command
      
      Also adds two rpc2 tests for testing the new functionality
      
      * Removes Debuggers' ToggleBreakpoint method
      
      rpc2's ToggleBreakpoint now calls AmendBreakpoint
      Refactors the ClearBreakpoint to avoid a lock.
      f5d2e132
  27. 13 3月, 2021 1 次提交
    • B
      Documentation: fix spelling error (#2337) · 6c6331c1
      Bryan Heden 提交于
      * fix spelling error
      
      * Revert "fix spelling error"
      
      This reverts commit 08058c9efbcee5d86ef429be5bd66f8307fb02d8.
      
      * update doc source and doc/fix spelling error
      6c6331c1
  28. 12 3月, 2021 1 次提交
  29. 09 3月, 2021 2 次提交
  30. 05 3月, 2021 1 次提交
    • A
      proc/*: implement proc.(*compositeMemory).WriteMemory (#2271) · 6a70d531
      Alessandro Arzilli 提交于
      Delve represents registerized variables (fully or partially) using
      compositeMemory, implementing proc.(*compositeMemory).WriteMemory is
      necessary to make SetVariable and function calls work when Go will
      switch to using the register calling convention in 1.17.
      
      This commit also makes some refactoring by moving the code that
      converts between register numbers and register names out of pkg/proc
      into a different package.
      6a70d531
  31. 25 2月, 2021 1 次提交
  32. 22 2月, 2021 1 次提交
    • A
      Documentation: update install instructions (#2352) · 780bcac9
      Alessandro Arzilli 提交于
      Remove OS specific install instructions that all repeat the same thing.
      Since `go get ...` is being deprecated (to install executables)
      recommend an install procedure that works on all supported versions of
      go (`git clone && go install`) but also mention the new `go install`
      mode in 1.16.
      780bcac9