1. 23 6月, 2020 1 次提交
  2. 16 6月, 2020 1 次提交
  3. 12 6月, 2020 2 次提交
  4. 06 6月, 2020 4 次提交
    • A
      proc: do not wipe sources list when a plugin is detected (#2075) · 708eadd5
      Alessandro Arzilli 提交于
      The list of source files must include all files from all images, not
      just the files from the last discovered image.
      
      Fixes #2074
      708eadd5
    • A
      proc: better support for C pointers (#1997) · a7272343
      Alessandro Arzilli 提交于
      - treat C pointers as arrays
      - print 'char *' variables as strings
      a7272343
    • Á
      terminal/command: Add 'reload' command (#1971) · 95e7cafd
      Álex Sáez 提交于
      * terminal/command: Add 'reload' command
      
      These changes add the 'reload' command, which allows us to rebuild the project
      and start the debugging session again. Currently, if the project's code is
      updated while debugging it, Delve shows the new source code, but it's still
      running the old one. With 'reload', the whole binary is rebuilt, and the
      process starts again.
      
      Fixes #1551
      
      * Remove unnecessary print
      
      Changes to be committed:
            modified:   pkg/terminal/command.go
      
      * Add tests and refactor the code
      
      Changes to be committed:
            modified:   cmd/dlv/cmds/commands.go
            modified:   go.mod
            modified:   pkg/terminal/command.go
            modified:   service/config.go
            modified:   service/debugger/debugger.go
            modified:   service/test/integration2_test.go
      
      * Fix typo in the comment
      
      Changes to be committed:
            modified:   service/debugger/debugger.go
      
      * Fix typo in the name of the variables
      
      The variables are local therefore the capitalization is not needed
      
      Changes to be committed:
            modified:   cmd/dlv/cmds/commands.go
      
      * Call GoTestBuild
      
      Also, remove the := to avoid redeclaration
      
      * Change the Kind in the tests
      
      Change from debugger.ExecutingGeneratedTest to
      debugger.ExecutingGeneratedFile for consistency.
      We are generating a real binary instead of a test
      one so ExecutingGeneratedFile makes more sense here.
      
      Changes to be committed:
            modified:   service/test/integration2_test.go
      
      * Avoid breakpoints based on addresses
      
      Changes to be committed:
            modified:   service/debugger/debugger.go
      
      * Update the rebuild behaviour
      
      There are a few cases where we can't rebuild the binary because we don't
      know how it was build.
      
      Changes to be committed:
            modified:   service/debugger/debugger.go
      
      * Fix typos and update documentation
      
      Changes to be committed:
            modified:   Documentation/cli/README.md
            modified:   pkg/terminal/command.go
            modified:   service/config.go
            modified:   service/debugger/debugger.go
      
      * Fix typo
      
      * Remove variables
      
      They were added to the debugger.Config
      
      * Rename variable
      
      Rename Kind to ExecuteKind to make it more accurate
      
      Changes to be committed:
            modified:   cmd/dlv/cmds/commands.go
            modified:   service/debugger/debugger.go
            modified:   service/test/integration2_test.go
      95e7cafd
    • A
      proc: step into unexported runtime funcs when already inside runtime (#2061) · 292f5c69
      Alessandro Arzilli 提交于
      Normally we don't step into unexported runtime functions because the
      compiler is free to insert them into the code and they are not relevant
      to the user, however if we are already stepping through a runtime
      function we should let step into work normally and step into other
      runtime functions.
      292f5c69
  5. 04 6月, 2020 3 次提交
  6. 03 6月, 2020 1 次提交
  7. 29 5月, 2020 1 次提交
  8. 23 5月, 2020 1 次提交
  9. 19 5月, 2020 1 次提交
  10. 15 5月, 2020 1 次提交
  11. 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
  12. 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
  13. 12 5月, 2020 4 次提交
  14. 05 5月, 2020 3 次提交
  15. 02 5月, 2020 6 次提交
  16. 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
  17. 24 4月, 2020 1 次提交
  18. 21 4月, 2020 1 次提交
  19. 18 4月, 2020 2 次提交
  20. 17 4月, 2020 2 次提交