1. 14 2月, 2020 1 次提交
    • C
      pkg,service: add cmd `examinemem`(`x`) for examining memory. (#1814) · a5d9dbee
      chainhelen 提交于
      According to #1800 #1584 #1038, `dlv` should enable the user to dive into
      memory. User can print binary data in specific memory address range.
      But not support for sepecific variable name or structures temporarily.(Because
      I have no idea that modify `print` command.)
      
      Close #1584.
      a5d9dbee
  2. 27 2月, 2019 1 次提交
  3. 19 1月, 2018 1 次提交
  4. 08 12月, 2017 1 次提交
  5. 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
  6. 12 9月, 2017 1 次提交
  7. 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
  8. 10 2月, 2017 1 次提交
  9. 22 10月, 2016 1 次提交
  10. 25 4月, 2016 1 次提交
    • A
      proc: Improvements to Variable printing (#444) · 473b6638
      Alessandro Arzilli 提交于
      * service/api: Removed unused fields of service/api.Function
      
      * proc/eval: Set return variable name to input expression
      
      * all: fine-grained control of loadValue for better variable printing
      
      Makes proc.(*Variable).loadValue loading parameters configurable
      through one extra argument of type LoadConfig.
      This interface is also exposed through the API so clients can control
      how much of a variable delve should read.
      473b6638
  11. 18 3月, 2016 1 次提交
  12. 25 1月, 2016 1 次提交
    • A
      proc: replace debug/dwarf with golang.org/x/debug/dwarf · 54f1c9b3
      aarzilli 提交于
      Typedefs that resolve to slices are not recorded in DWARF as typedefs
      but instead as structs in a way that there is no way to know they
      are really slices using debug/dwarf.
      Using golang.org/x/debug/dwarf instead this problem is solved and
      as a bonus some types are printed with a nicer names: (struct string
      → string, struct []int → []int, etc)
      
       Fixes #356 and #293
      54f1c9b3
  13. 16 12月, 2015 2 次提交
  14. 07 11月, 2015 3 次提交
  15. 04 11月, 2015 1 次提交
    • A
      proc: Implements expression interpreter · 43b64ec3
      aarzilli 提交于
      Supported operators:
      
      - All (binary and unary) operators between basic types except <-,
      ++ and -- (includes & to take the address of an expression)
      - Comparison operators between supported compound types
      - Typecast of integer constants into pointer types
      - struct members
      - indexing of arrays, slices and strings
      - slicing of arrays, slices and strings
      - pointer dereferencing
      - true, false and nil constants
      
      Implements #116, #117 and #251
      43b64ec3
  16. 29 10月, 2015 1 次提交