1. 16 9月, 2020 1 次提交
    • P
      service/dap: Add support for package globals to scopes/variables requests (#2160) · 4980fff8
      polinasok 提交于
      * Support global variables
      
      * Respond to review comments
      
      * Clarify comment
      
      * Add more details to test error messages
      
      * Remove flaky main..inittask checks
      
      * Rename globals flag to match vscode-go
      
      * Normalize filepath with slash separator
      
      * Improve handling for unknown package
      
      * Tweak error message
      
      * More refactoring, normalization and error details to deal with Win test failures
      
      * Clean up optional launch args processing
      
      * Add CurrentPackage to debugger and use instead of ListPackagesBuildInfo
      Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
      4980fff8
  2. 11 9月, 2020 1 次提交
  3. 10 9月, 2020 4 次提交
  4. 09 9月, 2020 1 次提交
  5. 02 9月, 2020 1 次提交
    • A
      cmd,proc,terminal,debugger: Support default file descriptor redirects · 7555d1c0
      aarzilli 提交于
      Adds features to support default file descriptor redirects for the
      target process:
      
      1. A new command line flag '--redirect' and '-r' are added to specify
         file redirects for the target process
      2. New syntax is added to the 'restart' command to specify file
         redirects.
      3. Interactive instances will check if stdin/stdout and stderr are
         terminals and print a helpful error message if they aren't.
      7555d1c0
  6. 01 9月, 2020 5 次提交
  7. 28 8月, 2020 2 次提交
  8. 25 8月, 2020 4 次提交
  9. 18 8月, 2020 4 次提交
  10. 17 8月, 2020 3 次提交
  11. 13 8月, 2020 1 次提交
  12. 11 8月, 2020 1 次提交
    • P
      service/dap: Initial support for scopes and variables requests (#2111) · 58ea3234
      polinasok 提交于
      * Initial support for scopes and variables requests
      
      * Add detailed variables test
      
      * Address review comments
      
      * Fix typo and redudant escaped characters
      
      * Bug fix for uninitialized interfaces; no refs needed for 0-size vars
      
      * Minor cosmetic tweaks
      
      * Add incomplete loading test
      
      * Make DeepSource happy
      
      * Remove unnecessary t.Helper() calls
      
      * Update broken test after merge
      
      * Add missing return
      
      * Rework test harness to abort testvariables2 before stack overflow
      
      * Remove accidentally duplicated disconnet
      
      * Test for invalid interface type with regex
      
      * Drop testvariables3, clean up and test unreadable case
      
      * Respond to review comments
      
      * Make expectVar test helper less fragile
      
      * Make DeepSource happy
      
      * Use proc.LoadConfig directly
      
      * Adjust test to avoid var count discrepency between Go 1.15 and earlier
      
      * Make compound keys in a map unique for correct display
      
      * Remove locals num check that will break if more vars are added
      Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
      58ea3234
  13. 06 8月, 2020 2 次提交
  14. 30 7月, 2020 1 次提交
  15. 29 7月, 2020 1 次提交
    • A
      Go 1.15 support (#2011) · f9c8f7f5
      Alessandro Arzilli 提交于
      * proc: start variable visibility one line after their decl line
      
      In most cases variables shouldn't be visible on their declaration line
      because they won't be initialized there.
      Function arguments are treated as an exception.
      
      This fix is only applied to programs compiled with Go 1.15 or later as
      previous versions of Go did not report the correct declaration line for
      variables captured by closures.
      
      Fixes #1134
      
      * proc: silence go vet error
      
      * Makefile: enable PIE tests on windows/Go 1.15
      
      * core: support core files for PIEs on windows
      
      * goversion: add Go 1.15 to supported versions
      
      * proc: fix function call injection for Go 1.15
      
      Go 1.15 changed the call injection protocol so that the runtime will
      execute the injected call on a different (new) goroutine.
      
      This commit changes the function call support in delve to:
      
      1. correctly track down the call injection state after the runtime
         switches to a different goroutine.
      2. correctly perform the escapeCheck when stack values can come from
         multiple goroutine stacks.
      
      * proc: miscellaneous fixed for call injection under macOS with go 1.15
      
      - create copy of SP in debugCallAXCompleteCall case because the code
        used to assume that regs doesn't change
      - fix automatic address calculation for function arguments when an
        argument has a spurious DW_OP_piece at entry
      f9c8f7f5
  16. 27 7月, 2020 1 次提交
  17. 22 7月, 2020 4 次提交
  18. 21 7月, 2020 1 次提交
  19. 16 7月, 2020 2 次提交