1. 22 2月, 2021 4 次提交
  2. 21 2月, 2021 3 次提交
  3. 11 2月, 2021 1 次提交
  4. 06 2月, 2021 1 次提交
  5. 30 1月, 2021 4 次提交
    • A
      terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) · 2c1a8226
      Alessandro Arzilli 提交于
      * proc/core: off-by-one error reading ELF core files
      
      core.(*splicedMemory).ReadMemory checked the entry interval
      erroneously when dealing with contiguous entries.
      
      * terminal,service,proc/*: adds dump command (gcore equivalent)
      
      Adds the `dump` command that creates a core file from the target process.
      
      Backends will need to implement a new, optional, method `MemoryMap` that
      returns a list of mapped memory regions.
      Additionally the method `DumpProcessNotes` can be implemented to write out
      to the core file notes describing the target process and its threads. If
      DumpProcessNotes is not implemented `proc.Dump` will write a description of
      the process and its threads in a OS/arch-independent format (that only Delve
      understands).
      
      Currently only linux/amd64 implements `DumpProcessNotes`.
      
      Core files are only written in ELF, there is no minidump or macho-o writers.
      
      # Conflicts:
      #	pkg/proc/proc_test.go
      2c1a8226
    • A
      proc/core: off-by-one error reading ELF core files (#2333) · 11e4ed2b
      Alessandro Arzilli 提交于
      core.(*splicedMemory).ReadMemory checked the entry interval
      erroneously when dealing with contiguous entries.
      11e4ed2b
    • A
      proc: fix embedded field search (#2320) · f19d5e5c
      Alessandro Arzilli 提交于
      Both structMember and findMethod implemented a depth-first search in
      embedded fields but the Go specification requires a breadth-first
      search. They also allowed promotion of fields in the concrete type of
      embedded interfaces even though this is not allowed by Go.
      Furthermore they both lacked protection from infinite recursion
      when a type embeds itself and the user requests a non-existent field.
      
      Fixes #2316
      f19d5e5c
    • T
      pkg/proc: fix for file reference handling with DWARF 5 compilation units (#2327) · dceffacb
      Than McIntosh 提交于
      Add a helper method for collecting line table file references that
      does the correct thing for DWARF 5 vs DWARF 4 (in the latter case you
      have an implicit 0 entry which is the comp dir, whereas in the former
      case you do not). This is to avoid out-of-bounds errors when examining
      the file table section of a DWARF 5 compilation unit's line table.
      
      Included is a new linux/amd-only test that includes a precompiled C
      object file with a DWARF-5 section that triggers the bug in question.
      
      Fixes #2319
      dceffacb
  6. 29 1月, 2021 1 次提交
  7. 28 1月, 2021 1 次提交
  8. 27 1月, 2021 5 次提交
  9. 26 1月, 2021 3 次提交
  10. 21 1月, 2021 3 次提交
  11. 20 1月, 2021 5 次提交
  12. 19 1月, 2021 1 次提交
  13. 18 1月, 2021 1 次提交
    • A
      Introduce TeamCity builds (#2298) · f2ec3e49
      Artem Khvastunov 提交于
      * add -json flag when running tests on TeamCity
      
      * introduce TeamCity builds
      
      * restore gdbserial constants for 386
      
      Otherwise compilation fails.
      
      * skip TestAttachRequest on Windows as it never finishes
      
      * run tests on 1.16beta1
      f2ec3e49
  14. 15 1月, 2021 1 次提交
  15. 13 1月, 2021 1 次提交
  16. 09 1月, 2021 1 次提交
  17. 07 1月, 2021 1 次提交
  18. 06 1月, 2021 3 次提交
    • A
      6d1c00e5
    • A
      *: Expand --build-flags= description in the document (#2273) · 433eafb2
      Alex Zamai 提交于
      add example for multiple  --build-flags
      
      add example description to --build-flags
      433eafb2
    • A
      Go 1.16 support branch (#2214) · 6dd686ca
      Alessandro Arzilli 提交于
      * proc: misc test fixes for Go 1.16
      
      * proc: fix cgo stacktraces in Go 1.16 with simplified C -> Go call path
      
      * dwarf/line: make dwarf/line correct when '\\' are used
      
      Our code depends heavily on paths being '/' separated because go always
      produced '/' separated file paths. The call to filepath.Join will
      normalize the paths, on windows, to always be '\\' separated, which
      violated our assumptions.
      
      This didn't use to be a problem because the codepath that calls
      filepath.Join was never exercised by executable files produced by Go,
      but Go 1.16 started producing debug_line sections that use the
      directory table with https://go-review.googlesource.com/c/go/+/263017/.
      
      Fix this to always use path.Join after making sure, on windows, to
      always normalize paths to use '/' as a separator. Replace the use of
      filepath.IsAbs with an operating system independent version.
      
      * goversion: bump supported Go version
      6dd686ca