1. 25 5月, 2017 1 次提交
    • A
      pkg/proc: remove unused types (#850) · 53908019
      Alessandro Arzilli 提交于
      type M struct was never used (as far as I know).
      type VariableEval interface was used for a brief period of time during
      the refactoring, now both its methods are functions.
      53908019
  2. 23 5月, 2017 1 次提交
  3. 17 5月, 2017 1 次提交
    • A
      proc: next, stepout should work on recursive goroutines (#831) · 35405583
      Alessandro Arzilli 提交于
      Before this commit our temp breakpoints only checked that we would stay
      on the same goroutine.
      However this isn't enough for recursive functions we must check that we
      stay on the same goroutine AND on the same stack frame (or, in the case
      of the StepOut breakpoint, the previous stack frame).
      
      This commit:
      1. adds a new synthetic variable runtime.frameoff that returns the
         offset of the current frame from the base of the call stack.
         This is similar to runtime.curg
      2. Changes the condition used for breakpoints on the lines of the
         current function to check that runtime.frameoff hasn't changed.
      3. Changes the condition used for breakpoints on the return address to
         check that runtime.frameoff corresponds to the previous frame in the
         stack.
      4. All other temporary breakpoints (the step-into breakpoints and defer
         breakpoints) remain unchanged.
      
      Fixes #828
      35405583
  4. 16 5月, 2017 1 次提交
  5. 12 5月, 2017 1 次提交
  6. 10 5月, 2017 1 次提交
  7. 09 5月, 2017 1 次提交
  8. 06 5月, 2017 3 次提交
  9. 05 5月, 2017 2 次提交
  10. 02 5月, 2017 1 次提交
  11. 29 4月, 2017 2 次提交
  12. 26 4月, 2017 1 次提交
  13. 25 4月, 2017 1 次提交
  14. 22 4月, 2017 3 次提交
  15. 20 4月, 2017 2 次提交
  16. 19 4月, 2017 8 次提交
  17. 18 4月, 2017 1 次提交
    • H
      vendor: update vendored packages (#791) · 5bd46f34
      Hyang-Ah Hana Kim 提交于
      * pkg/proc: use golang.org/x/arch/x86/x86asm
      
      instead of rsc.io/x86/x86asm
      
      * pkg/dwarf: migrate to github.com/pkg/profile
      
      from github.com/davecheney/profile
      
      * scripts: keep script go files from being considered for the build
      
      scripts/gen-*.go files are scripts for generating documentation
      files and don't follow the typical Go package layout. Expected
      usage is like
      
         go run scripts/gen-cli-docs.go
      
      * vendor: update vendored packages
      
      There were many changes in delve, and go tool chains since last
      vendored package update. I just rerun godpes from scratch.
      
      $ rm vendor/*
      $ rm Godeps/Godeps.json
      $ go list ./... | grep -v /vendor/ | grep -v /scripts/ | go get -u -t
      $ go get -u github.com/mattn/go-colorable
      $ go get -u github.com/mattn/go-isatty
      $ go list ./... | grep -v /vendor/ | grep -v /scripts/ | godeps save
      5bd46f34
  18. 14 4月, 2017 2 次提交
  19. 07 4月, 2017 1 次提交
    • A
      proc refactor: split out BinaryInfo implementation (#745) · 436a3c21
      Alessandro Arzilli 提交于
      * proc: refactor BinaryInfo part of proc.Process to own type
      
      The data structures and associated code used by proc.Process
      to implement target.BinaryInfo will also be useful to support a
      backend for examining core dumps, split this part of proc.Process
      to a different type.
      
      * proc: compile support for all executable formats unconditionally
      
      So far we only compiled in support for loading the executable format
      supported by the host operating system.
      Once support for core files is introduced it is however useful to
      support loading in all executable formats, there is no reason why it
      shouldn't be possible to examine a linux coredump on windows, or
      viceversa.
      
      * proc: bugfix: do not resume threads on detach if killing
      
      * Replace BinaryInfo interface with BinInfo() method returning proc.BinaryInfo
      436a3c21
  20. 29 3月, 2017 1 次提交
    • A
      proc: add test for attach/detach, fix detach (#773) · 7b19fe9e
      Alessandro Arzilli 提交于
      Detach did not work for processes we attach to via PID.
      
      Linux: we were only detaching from the main thread, all threads are
      detached independently
      
      Windows: we must resume all threads before detaching.
      
      macOS: still broken.
      
      Updates #772
      7b19fe9e
  21. 22 3月, 2017 1 次提交
  22. 14 3月, 2017 4 次提交