1. 08 12月, 2017 2 次提交
  2. 29 11月, 2017 1 次提交
  3. 21 11月, 2017 1 次提交
    • A
      proc: next should not skip lines with conditional bps · 1ced7c3a
      aarzilli 提交于
      Conditional breakpoints with unmet conditions would cause next and step
      to skip the line.
      
      This breakpoint changes the Kind field of proc.Breakpoint from a single
      value to a bit field, each breakpoint object can represent
      simultaneously a user breakpoint and one internal breakpoint (of which
      we have several different kinds).
      
      The breakpoint condition for internal breakpoints is stored in the new
      internalCond field of proc.Breakpoint so that it will not conflict with
      user specified conditions.
      
      The breakpoint setting code is changed to allow overlapping one
      internal breakpoint on a user breakpoint, or a user breakpoint on an
      existing internal breakpoint. All other combinations are rejected. The
      breakpoint clearing code is changed to clear the UserBreakpoint bit and
      only remove the phisical breakpoint if no other bits are set in the
      Kind field. ClearInternalBreakpoints does the same thing but clearing
      all bits that aren't the UserBreakpoint bit.
      
      Fixes #844
      1ced7c3a
  4. 04 11月, 2017 1 次提交
  5. 25 10月, 2017 1 次提交
    • A
      proc/eval: support more type casts · 8f16b371
      aarzilli 提交于
      * string to []rune
      * string to []byte
      * []rune to string
      * []byte to string
      * any pointer to uintptr
      
      The string, []rune, []byte conversion pairs aligns this to the go
      language.
      The pointer -> uintptr conversion pair is symmetric to the uintptr ->
      pointer that we already have.
      
      Also lets the user specify any size for byte array types instead of
      just the ones already used by the program, this can be used to read
      arbitrary memory.
      
      Fixes #548, #867
      8f16b371
  6. 12 9月, 2017 1 次提交
  7. 31 8月, 2017 1 次提交
  8. 02 8月, 2017 3 次提交
  9. 27 7月, 2017 1 次提交
  10. 30 6月, 2017 2 次提交
    • A
      proc/variables: dereference concrete value of interface variables (#905) · 293c5087
      Alessandro Arzilli 提交于
      The concrete value of an interface is always stored as a pointer inside
      an interface variable. So far we have followed the memory layout and
      reported the type of the 'data' attribute of interfaces as a pointer,
      however this makes it impossible to distinguish interfaces with
      concrete value of type 'A' from interfaces of concrete value of type
      '*A'.
      
      With this changeset when we autodereference pointers when the concrete
      type of an interface is not a pointer.
      293c5087
    • F
      Fix various issues detected by megacheck (#880) · 32a005de
      Florin Pățan 提交于
      * Fix various issues detected by megacheck
      
      I've ran honnef.co/go/tools/cmd/megacheck and fixed a few of the
      things that came up there.
      
      * Cleanup using Gogland
      32a005de
  11. 21 6月, 2017 1 次提交
    • A
      api: add FrameOffset to Stackframe (#864) · 04c4b019
      Alessandro Arzilli 提交于
      Other debuggers can be instructed to decorate the stacktrace with the
      value of SP. Our SP equivalent is the frame offset, since we can add it
      to the Stackframe structure without incurring into added costs we
      should, so that frontends can use it if they want.
      04c4b019
  12. 06 5月, 2017 1 次提交
  13. 22 4月, 2017 2 次提交
    • A
      proc: refactoring: merge target into proc · b6fe5aeb
      aarzilli 提交于
      - moved target.Interface into proc as proc.Process
      - rename proc.IThread to proc.Thread
      - replaced interfaces DisassembleInfo, Continuable and
        EvalScopeConvertible with Process.
      - removed superfluous Gdbserver prefix from types in the gdbserial
        backend.
      - removed superfluous Core prefix from types in the core backend.
      b6fe5aeb
    • A
      proc: refactoring: split backends to separate packages · 15bac719
      aarzilli 提交于
      - move native backend to pkg/proc/native
      - move gdbserver backend to pkg/proc/gdbserial
      - move core dumps backend to pkg/proc/core
      15bac719
  14. 19 4月, 2017 1 次提交
  15. 10 2月, 2017 1 次提交
  16. 09 2月, 2017 1 次提交
  17. 21 1月, 2017 1 次提交
  18. 10 1月, 2017 1 次提交
  19. 23 12月, 2016 1 次提交
  20. 20 12月, 2016 1 次提交
  21. 23 10月, 2016 1 次提交
  22. 22 10月, 2016 1 次提交
  23. 06 7月, 2016 1 次提交
  24. 02 7月, 2016 1 次提交
    • A
      Replaced net/rpc with custom version · 80336e57
      aarzilli 提交于
      This version preserves the order of requests, allows the
      client to switch between API versions and introduces a
      way to send notifications to the client (see TODO item at:
      proc/proc_linux.go:325).
      
      Fixes #523, #571
      80336e57
  25. 30 6月, 2016 1 次提交
    • A
      proc: detect when Launching non-executable files · 51c39ed1
      aarzilli 提交于
      This provides a better error message when the user tries to run dlv
      debug on a directory that does not contain a main package, when `dlv
      exec` is used with a source file.
      
      Additionally the architecture of the executable is checked as suggested
      by @alexbrainman in #443.
      
      Fixes #509
      51c39ed1
  26. 21 6月, 2016 1 次提交
  27. 30 5月, 2016 2 次提交
    • D
      all: Fix typos · 0fded288
      Derek Parker 提交于
      0fded288
    • A
      Go 1.7 compatibility (#524) · 9bc6ad4f
      Alessandro Arzilli 提交于
      * tests: update to cope with go1.7 SSA compiler
      
      * de-vendored golang.org/x/debug/dwarf
      
      We need our own tweaked version
      
      * dwarf/debug/dwarf: always use the entry's name attribute
      
      Using the name attribute leads to better type names as well as fixes
      inconsistencies between 1.5, 1.6 and 1.7.
      
      * proc: Updated loadInterface to work with go1.7
      
      go1.7 changed the internal representation of types, removing the string
      field from runtime._type.
      Updated loadInterface to use the new str field.
      9bc6ad4f
  28. 25 4月, 2016 2 次提交
    • A
      terminal,service: auto-continue during next and step (#448) · c4e01da5
      Alessandro Arzilli 提交于
      * proc: bugfix: StepInto can not function when temp bps exist
      
      * terminal,service: auto-continue during next and step
      
      Make dlv call continue automatically when a breakpoint is hit on a
      different goroutine during a next or step operation.
      Added API hooks to implement the other solution to this problem (cancel
      the next/step operation if a different breakpoint is hit).
      
      Fixes #387
      c4e01da5
    • A
      proc: Improvements to Variable printing (#444) · 473b6638
      Alessandro Arzilli 提交于
      * service/api: Removed unused fields of service/api.Function
      
      * proc/eval: Set return variable name to input expression
      
      * all: fine-grained control of loadValue for better variable printing
      
      Makes proc.(*Variable).loadValue loading parameters configurable
      through one extra argument of type LoadConfig.
      This interface is also exposed through the API so clients can control
      how much of a variable delve should read.
      473b6638
  29. 18 3月, 2016 1 次提交
  30. 17 2月, 2016 1 次提交
  31. 12 2月, 2016 1 次提交
  32. 25 1月, 2016 2 次提交
    • D
      proc: step now goes to next line, including funcs · 1bda5861
      Derek Parker 提交于
      This patch modifies the `step` command to step to the next source line,
      stepping into any function encountered along the way.
      
      Fixes #360
      1bda5861
    • A
      proc: replace debug/dwarf with golang.org/x/debug/dwarf · 54f1c9b3
      aarzilli 提交于
      Typedefs that resolve to slices are not recorded in DWARF as typedefs
      but instead as structs in a way that there is no way to know they
      are really slices using debug/dwarf.
      Using golang.org/x/debug/dwarf instead this problem is solved and
      as a bonus some types are printed with a nicer names: (struct string
      → string, struct []int → []int, etc)
      
       Fixes #356 and #293
      54f1c9b3