1. 27 6月, 2017 3 次提交
  2. 22 6月, 2017 1 次提交
    • H
      proc: read G struct offset from runtime.tlsg if possible (#883) · 7d2834a9
      heschik 提交于
      When a Go program is externally linked, the external linker is
      responsible for picking the TLS offset. It records its decision in the
      runtime.tlsg symbol. Read the offset from that rather than guessing -16.
      
      This implementation causes a regression: 1.4 and earlier will no longer
      work.
      7d2834a9
  3. 21 6月, 2017 2 次提交
  4. 20 6月, 2017 1 次提交
  5. 13 6月, 2017 6 次提交
  6. 06 6月, 2017 1 次提交
  7. 31 5月, 2017 2 次提交
  8. 27 5月, 2017 5 次提交
  9. 26 5月, 2017 1 次提交
  10. 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
  11. 23 5月, 2017 1 次提交
  12. 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
  13. 16 5月, 2017 1 次提交
  14. 12 5月, 2017 1 次提交
  15. 10 5月, 2017 1 次提交
  16. 09 5月, 2017 1 次提交
  17. 06 5月, 2017 3 次提交
  18. 05 5月, 2017 2 次提交
  19. 02 5月, 2017 1 次提交
  20. 29 4月, 2017 2 次提交
  21. 27 4月, 2017 1 次提交
    • H
      cmd/dlv: fix race in test (#805) · c67986ed
      Hyang-Ah Hana Kim 提交于
      % go test -race -v -short
      
      === RUN   TestBuild
      ==================
      WARNING: DATA RACE
      Write at 0x00c4201379a0 by goroutine 9:
        os.(*file).close()
            /usr/local/go/src/os/file_unix.go:143 +0x10a
        os.(*File).Close()
            /usr/local/go/src/os/file_unix.go:132 +0x55
        os/exec.(*Cmd).closeDescriptors()
            /usr/local/go/src/os/exec/exec.go:263 +0x67
        os/exec.(*Cmd).Wait()
            /usr/local/go/src/os/exec/exec.go:448 +0x2b8
        github.com/derekparker/delve/cmd/dlv.TestBuild.func1()
            /home/kbuilder/go/src/github.com/derekparker/delve/cmd/dlv/dlv_test.go:82 +0x8e
        github.com/derekparker/delve/cmd/dlv.TestBuild()
            /home/kbuilder/go/src/github.com/derekparker/delve/cmd/dlv/dlv_test.go:104 +0xb6a
        testing.tRunner()
            /usr/local/go/src/testing/testing.go:657 +0x107
      
      Previous read at 0x00c4201379a0 by goroutine 12:
        os.(*File).Read()
            /usr/local/go/src/os/file.go:98 +0x70
        bufio.(*Scanner).Scan()
            /usr/local/go/src/bufio/scan.go:207 +0x539
        github.com/derekparker/delve/cmd/dlv.TestBuild.func2()
            /home/kbuilder/go/src/github.com/derekparker/delve/cmd/dlv/dlv_test.go:93 +0x38
      
      Change-Id: I09d188dbf964fe4af0b33b6a8fcfe51396176b7e
      c67986ed
  22. 26 4月, 2017 1 次提交
  23. 25 4月, 2017 1 次提交