commit | cb3270ea52df246d657e968618dc992839d4a326 | [log] [tgz] |
---|---|---|
author | jcd <jcd@golang.org> | Wed Jul 29 16:49:27 2015 +1000 |
committer | jcd . <jcd@golang.org> | Mon Aug 17 06:42:46 2015 +0000 |
tree | 965bbbe7df8261329d3c80013f8675ad2a3d442b | |
parent | 182745de252cdebd443134bf029fddb47a0e058f [diff] |
x/debug: support getting values of slice type. The type program.Slice that the user gets for slice variables just embeds a program.Array and adds a capacity field. The DWARF information for slices doesn't include stride, so the stride is computed with the size of the element type. Change-Id: I69c60998abd1b48b1986522f60f93ddcad0c155e Reviewed-on: https://go-review.googlesource.com/12831 Reviewed-by: Rob Pike <r@golang.org>