diff options
| author | Than McIntosh <thanm@google.com> | 2019-01-18 15:16:11 -0500 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2019-03-15 17:33:46 +0000 |
| commit | c135dfbf1842993aa2fd4c293b2476ce4733daf7 (patch) | |
| tree | 7f66e8ae126664969d145c3bdd823de3506eec1c /test/codegen | |
| parent | 6e63b15567cb67059153bbcd787ed0d2f64dbcf3 (diff) | |
| download | go-c135dfbf1842993aa2fd4c293b2476ce4733daf7.tar.xz | |
debug/dwarf: more graceful handling of unsupported types
Enhance the type decoder to do a better job handling unknown type
tags. DWARF has a number of type DIEs that this package doesn't handle
(things like "pointer to member" types in C++); avoid crashing for
such types, but instead return a placeholder "UnsupportedType" object
(this idea suggested by Austin). This provides a compromise between
implementing the entire kitchen sink and simply returning an error
outright on any unknown type DIE.
Fixes #29601.
Change-Id: I2eeffa094c86ef3a2c358ee42e8e629d74cec2ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/158797
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions
