1. 12 10月, 2018 1 次提交
    • A
      proc: support position independent executables (PIE) · 74c98bc9
      aarzilli 提交于
      Support for position independent executables (PIE) on the native linux
      backend, the gdbserver backend on linux and the core backend.
      Also implemented in the windows native backend, but it can't be tested
      because go doesn't support PIE on windows yet.
      74c98bc9
  2. 28 9月, 2018 1 次提交
  3. 26 9月, 2018 1 次提交
    • A
      proc: implement conversion of integers to string · 50419b61
      aarzilli 提交于
      Go allows converting a single integer value to string, resulting in a
      string containing a single unicode rune with the same code as the value
      of the integer.
      Allow the same conversion to happen.
      
      Fixes #1322
      50419b61
  4. 30 8月, 2018 1 次提交
    • A
      proc: fix type of some struct global variables · 0461af83
      aarzilli 提交于
      Normally variables that have a named struct as a type will get a
      typedef entry as their type, sometimes however the Go linker will
      decide to use the DW_TAG_structure_type entry instead.
      
      For consistency always wrap a struct type into a typedef when we are
      creating a new variables (see comment in newVariable for exceptions).
      
      This fixes a bug where it would be impossible to call methods on a
      global variable.
      0461af83
  5. 17 8月, 2018 3 次提交
  6. 16 8月, 2018 2 次提交
    • A
      proc: use (*Variable).setValue in fncall · 9335c540
      aarzilli 提交于
      9335c540
    • A
      proc: change (*Variable).setValue for use in CallFunction · 12a3f8bb
      aarzilli 提交于
      Changes (*Variable).setValue so that it can be used in CallFunction to
      set up the argument frame for the function call, adding the ability to:
      - nil nillable types
      - set strings to the empty string
      - copy from one structure to another (including strings and slices)
      - convert any interface type to interface{}
      - convert pointer shaped types (map, chan, pointers, and structs
        consisting of a single pointer field) to interface{}
      
      This covers all cases where an assignment statement can be evaluated
      without allocating memory or calling functions in the target process.
      12a3f8bb
  7. 14 7月, 2018 1 次提交
  8. 15 6月, 2018 1 次提交
    • A
      proc: allow "package/path".varname syntax · 2a2d1040
      aarzilli 提交于
      If the application being debugged imports two packages with the same
      name (but different paths) there was no way to disambiguate the two,
      since the character '/' can not appear inside a go identifier.
      
      By allowing users to use a string literal as the package name a package
      path can be specified.
      2a2d1040
  9. 19 5月, 2018 1 次提交
    • A
      proc/native,proc/gdbserial: let target access terminal · cc86bde5
      aarzilli 提交于
      Change the linux verison of proc/native and proc/gdbserial (with
      debugserver) so that they let the target process use the terminal when
      delve is launched in headless mode.
      
      Windows already worked, proc/gdbserial (with rr) already worked.
      I couldn't find a way to make proc/gdbserial (with lldb-server) work.
      
      No tests are added because I can't think of a way to test for
      foregroundness of a process.
      
      Fixes #65
      cc86bde5
  10. 14 4月, 2018 1 次提交
  11. 11 4月, 2018 1 次提交
  12. 21 3月, 2018 1 次提交
  13. 07 3月, 2018 1 次提交
    • A
      proc: remove proc.Process.Halt · e47599d0
      aarzilli 提交于
      The proper way to stop a running process is to call RequestManualStop,
      which most code already did with the exception of some old test code.
      e47599d0
  14. 14 2月, 2018 1 次提交
    • A
      dwarf/reader,proc: support DW_AT_abstract_origin (#1111) · 0c40a8f5
      Alessandro Arzilli 提交于
      debug_info entries can use DW_AT_abstract_origin to inherit the
      attributes of another entry, supporting this attribute is necessary to
      support DW_TAG_inlined_subroutine.
      
      Go, starting with 1.10, emits DW_TAG_inlined_subroutine entries when
      inlining is enabled.
      0c40a8f5
  15. 19 1月, 2018 1 次提交
  16. 14 12月, 2017 2 次提交
  17. 21 11月, 2017 2 次提交
  18. 25 10月, 2017 1 次提交
    • A
      proc/eval: support more type casts · 8f16b371
      aarzilli 提交于
      * string to []rune
      * string to []byte
      * []rune to string
      * []byte to string
      * any pointer to uintptr
      
      The string, []rune, []byte conversion pairs aligns this to the go
      language.
      The pointer -> uintptr conversion pair is symmetric to the uintptr ->
      pointer that we already have.
      
      Also lets the user specify any size for byte array types instead of
      just the ones already used by the program, this can be used to read
      arbitrary memory.
      
      Fixes #548, #867
      8f16b371
  19. 12 9月, 2017 1 次提交
  20. 31 8月, 2017 1 次提交
  21. 02 8月, 2017 2 次提交
  22. 08 7月, 2017 1 次提交
  23. 30 6月, 2017 2 次提交
    • A
      proc/variables: dereference concrete value of interface variables (#905) · 293c5087
      Alessandro Arzilli 提交于
      The concrete value of an interface is always stored as a pointer inside
      an interface variable. So far we have followed the memory layout and
      reported the type of the 'data' attribute of interfaces as a pointer,
      however this makes it impossible to distinguish interfaces with
      concrete value of type 'A' from interfaces of concrete value of type
      '*A'.
      
      With this changeset when we autodereference pointers when the concrete
      type of an interface is not a pointer.
      293c5087
    • F
      Fix various issues detected by megacheck (#880) · 32a005de
      Florin Pățan 提交于
      * Fix various issues detected by megacheck
      
      I've ran honnef.co/go/tools/cmd/megacheck and fixed a few of the
      things that came up there.
      
      * Cleanup using Gogland
      32a005de
  24. 31 5月, 2017 1 次提交
  25. 27 5月, 2017 1 次提交
  26. 06 5月, 2017 1 次提交
  27. 22 4月, 2017 3 次提交
  28. 20 4月, 2017 1 次提交
  29. 19 4月, 2017 3 次提交