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. dwarf/
  2. elf/
  3. gosym/
  4. macho/
  5. ogle/
  6. AUTHORS
  7. CONTRIBUTORS
  8. LICENSE
  9. README