1. 23 5月, 2020 1 次提交
  2. 19 5月, 2020 1 次提交
  3. 15 5月, 2020 1 次提交
  4. 14 5月, 2020 2 次提交
    • C
      [WIP] pkg/proc: avoid target process leaks. (#2018) · e28e3d30
      chainhelen 提交于
      * pkg/proc: avoid target process leaks.
      
      Target process should exit when dlv launch failed.
      
      Fix #2017.
      e28e3d30
    • A
      proc/*: only load floating point registers when needed (#1981) · 200994bc
      Alessandro Arzilli 提交于
      Changes implementations of proc.Registers interface and the
      op.DwarfRegisters struct so that floating point registers can be loaded
      only when they are needed.
      Removes the floatingPoint parameter from proc.Thread.Registers.
      This accomplishes three things:
      
      1. it simplifies the proc.Thread.Registers interface
      2. it makes it impossible to accidentally create a broken set of saved
         registers or of op.DwarfRegisters by accidentally calling
         Registers(false)
      3. it improves general performance of Delve by avoiding to load
         floating point registers as much as possible
      
      Floating point registers are loaded under two circumstances:
      
      1. When the Slice method is called with floatingPoint == true
      2. When the Copy method is called
      
      Benchmark before:
      
      BenchmarkConditionalBreakpoints-4   	       1	4327350142 ns/op
      
      Benchmark after:
      
      BenchmarkConditionalBreakpoints-4   	       1	3852642917 ns/op
      
      Updates #1549
      200994bc
  5. 13 5月, 2020 1 次提交
    • D
      cmd/dlv: Fix trace output (#2038) · f96663a2
      Derek Parker 提交于
      * cmd/dlv,debugger: Improve dlv trace and trace command output
      
      This patch improves the `dlv trace` subcommand output by reducing the
      noise that is generated and providing clearer more concise information.
      
      Also adds new tests closing a gap in our testing (we previously never
      really tested this subcommand).
      
      This patch also fixes the `dlv trace` REPL command to behave like the
      subcommand in certain situations. If the tracepoint is for a function,
      we now show function arguements and return values properly.
      
      Also makes the overall output of the trace subcommand clearer.
      
      Fixes #2027
      f96663a2
  6. 12 5月, 2020 4 次提交
  7. 05 5月, 2020 3 次提交
  8. 02 5月, 2020 6 次提交
  9. 28 4月, 2020 2 次提交
    • A
      terminal: clarify Ctrl-C options with multiclient servers · 6102c31d
      aarzilli 提交于
      Fixes #2028
      6102c31d
    • M
      proc: Find executable should follow symbol links. · 3e04ad0f
      Min Zhou 提交于
      On linux platform, we simply treated `/proc/$pid/exe` as the
      executable of targeting process when doing `dlv attach`. The
      `/proc/$pid/exe` is a symbol link of the real executable file.
      Delve couldn't find the corrsponding external debug file based on the
      symbol link:
      
      ```
      could not attach to pid $pid: could not open debug info
      ```
      
      The fix is to evaluate the symbol links to the actual executable path.
      3e04ad0f
  10. 24 4月, 2020 1 次提交
  11. 21 4月, 2020 1 次提交
  12. 18 4月, 2020 2 次提交
  13. 17 4月, 2020 2 次提交
  14. 15 4月, 2020 2 次提交
  15. 14 4月, 2020 1 次提交
  16. 11 4月, 2020 6 次提交
  17. 10 4月, 2020 2 次提交
    • A
      Miscellaneous debug_line improvements (#1999) · c3a4d726
      Alessandro Arzilli 提交于
      * dwarf/line: implement DW_LNE_set_discriminator
      
      We don't use the discriminator field in any way but we need to at least
      parse it to support debub_line programs that use it.
      
      * dwarf/line: support parsing DWARF4 debug_line sections
      
      There is an extra field maximum_operations_per_instruction that is used
      for VLIW CPUs. We don't support this feature but we have to at least
      parse the field to not crash.
      c3a4d726
    • D
      gdbserial/gdbserver: Dynamically resolve debugserver binary (#1994) · bc30b539
      Darren Rambaud 提交于
      * gdbserial/gdbserver: Dynamically resolve debugserver binary
      
      Instead of hardcoding the absolute path to the Command Line
      Tools (CLT) binary, will attempt to resolve the path at the
      $PATH, or at the Xcode bundle. If none are available, will
      fallback to the default CLT location.
      
      Fixes #986
      
      * gdbserial/gdbserver: Log outgoing executed commands
      
      Add logging to capture the executable and associated arguments used
      in LLDBLaunch and LLDBAttach
      
      Related to #986
      
      * gdbserial/gdbserver: Add unit tests for helper function
      
      Define unit tests for helper function. Setup each test to temporarily make
      PATH variable, and file system changes, and subsequently revert them.
      
      Related to #986
      
      * gdbserial/gdbserver: Lazily load function
      
      Lazily obtain absolute path to avoid increasing load times.
      
      Remove flaky tests.
      
      Related to #986
      bc30b539
  18. 08 4月, 2020 1 次提交
  19. 06 4月, 2020 1 次提交
    • A
      Documentation: add modules mode note to install documentation · 3a726467
      aarzilli 提交于
      1. Adds a note to the documentation describing how to use 'go get' in
         modules mode
      2. Removes the '-u' option which, when 'go get' is used incorrectly
         will make 'go' try to compile Delve with unsupported dependencies
      3. Removed obsolete note about Go 1.5 vendor experiment.
      
      Fixes #1988
      3a726467