debug: move the code for peeking values of various types into separate functions.

Also peeks some struct fields by finding the field with the right name in the
DWARF information for the struct, rather than assuming that the fields are
stored in a particular order.  This happens in peek<fieldtype>StructField and
getField.

Change-Id: I7bb117df59de791cb2611beb3bfccf2694599d36
Reviewed-on: https://go-review.googlesource.com/2531
Reviewed-by: Rob Pike <r@golang.org>
1 file changed
tree: 4bf67ea93cd60d819eb1204ff4d0907b033c4221
  1. AUTHORS
  2. CONTRIBUTORS
  3. LICENSE
  4. README
  5. dwarf/
  6. elf/
  7. gosym/
  8. macho/
  9. ogle/