diff options
| author | Russ Cox <rsc@golang.org> | 2011-06-13 14:43:54 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-06-13 14:43:54 -0400 |
| commit | 9968090dddb74e7b5cd1352d791b7cf8cb7a6045 (patch) | |
| tree | 219acbe4e26cfa51a60b4c039f4cdaec7fec9faf /src/pkg/debug/dwarf | |
| parent | 8834bb0bfa7cbbfeb9df0c6d1fa2296e24a431d5 (diff) | |
| download | go-9968090dddb74e7b5cd1352d791b7cf8cb7a6045.tar.xz | |
cgo: handle new Apple LLVM-based gcc from Xcode 4.2
That gcc does not include enumerator names and values
in its DWARF debug output. Create a data block from which
we can read the values instead.
Fixes #1881.
R=iant
CC=golang-dev
https://golang.org/cl/4607045
Diffstat (limited to 'src/pkg/debug/dwarf')
| -rw-r--r-- | src/pkg/debug/dwarf/type.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/debug/dwarf/type.go b/src/pkg/debug/dwarf/type.go index f9acf119f3..a33785b049 100644 --- a/src/pkg/debug/dwarf/type.go +++ b/src/pkg/debug/dwarf/type.go @@ -352,8 +352,8 @@ func (d *Data) Type(off Offset) (Type, os.Error) { } } if ndim == 0 { - err = DecodeError{"info", e.Offset, "missing dimension for array"} - goto Error + // LLVM generates this for x[]. + t.Count = -1 } case TagBaseType: |
