1. 08 12月, 2017 1 次提交
  2. 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
  3. 04 11月, 2017 1 次提交
  4. 12 9月, 2017 1 次提交
  5. 02 8月, 2017 2 次提交
  6. 30 6月, 2017 1 次提交
  7. 06 5月, 2017 1 次提交
  8. 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
  9. 19 4月, 2017 1 次提交
  10. 09 2月, 2017 1 次提交
  11. 21 1月, 2017 1 次提交
  12. 20 12月, 2016 1 次提交
  13. 06 7月, 2016 1 次提交
  14. 21 6月, 2016 1 次提交
  15. 30 5月, 2016 1 次提交
    • 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
  16. 25 4月, 2016 1 次提交
    • 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
  17. 17 2月, 2016 1 次提交
  18. 12 2月, 2016 1 次提交
  19. 25 1月, 2016 1 次提交
    • 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
  20. 10 1月, 2016 1 次提交
  21. 09 1月, 2016 2 次提交
    • A
      proc: Next implemented as conditional breakpoints + Continue · 54411356
      aarzilli 提交于
      Next sets its temporary breakpoints with the condition that they
      must only activate on the current goroutine, and then calls Continue
      When Continue encounters a temporary breakpoint it clears all
      the breakpoint.
      
      User visible changes: breakpoints that get hit while executing Next
      are not ignored.
      
      This commit does not implement full conditional breakpoints
      functionality, the only condition that can be set is on the
      goroutine id.
      
      Fixes race conditions in Next affecting TestNextConcurrent.
      54411356
    • A
      service,terminal: propagating simultaneous breakpoints · 708cf2f2
      aarzilli 提交于
      708cf2f2
  22. 16 12月, 2015 1 次提交
  23. 04 11月, 2015 1 次提交
    • A
      proc: Implements expression interpreter · 43b64ec3
      aarzilli 提交于
      Supported operators:
      
      - All (binary and unary) operators between basic types except <-,
      ++ and -- (includes & to take the address of an expression)
      - Comparison operators between supported compound types
      - Typecast of integer constants into pointer types
      - struct members
      - indexing of arrays, slices and strings
      - slicing of arrays, slices and strings
      - pointer dereferencing
      - true, false and nil constants
      
      Implements #116, #117 and #251
      43b64ec3
  24. 29 10月, 2015 3 次提交
  25. 19 10月, 2015 2 次提交
  26. 10 10月, 2015 1 次提交
  27. 20 8月, 2015 1 次提交
  28. 13 7月, 2015 1 次提交
    • D
      Implement 'trace' subcommand · 3cee10d8
      Derek Parker 提交于
      Allows a user to execute `dlv trace [regexp]` and Delve will execute the
      program and output information on functions matching [regexp].
      3cee10d8
  29. 01 7月, 2015 1 次提交
    • D
      Cleanup tracepoint commit · 6b99c5f5
      Derek Parker 提交于
      * Cleanup comments
      * Cleanup naming in certain instances
      * Modify stacktrace to return current location
      6b99c5f5
  30. 30 6月, 2015 1 次提交
  31. 21 6月, 2015 1 次提交
  32. 14 6月, 2015 1 次提交
    • D
      Refactor: Use thread-locked goroutine for ptrace ops · e4fc5e32
      Derek Parker 提交于
      Previously either the terminal client or the debugger service would
      either lock main goroutine to a thread or provide a locked goroutine to
      run _all_ DebuggedProcess functions in. This is unnecessary because only
      ptrace functions need to be run from the same thread that originated the
      PT_ATTACH request.
      
      Here we use a specific thread-locked goroutine to service any ptrace
      request. That goroutine is also responsible for the initial spawning /
      attaching of the process, since it must be responsible for the PT_ATTACH
      request.
      e4fc5e32