debug: Allow internal slice struct fields to be signed or unsigned ints.
The DWARF types of the "len" and "cap" fields of slices are changing to
signed int. Accept both when reading slices from a debugged program.
We don't want the printer's error variable set with p.errorf in
peekUintStructField or peekIntStructField while trying the two types, so
remove those calls to errorf. More specific errors are set by callers
when necessary anyway.
Reviewed-by: Rob Pike <email@example.com>
1 file changed