go/src/debug
Than McIntosh c135dfbf18 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>
2019-03-15 17:33:46 +00:00
..
dwarf debug/dwarf: more graceful handling of unsupported types 2019-03-15 17:33:46 +00:00
elf debug/elf: perform stricter section header table checks in NewFile 2019-03-01 06:04:20 +00:00
gosym debug/gosym: simplify parsing symbol name rule 2019-03-09 00:24:42 +00:00
macho debug/elf,macho,pe: support compressed DWARF 2018-06-19 22:13:51 +00:00
pe debug/pe: prevent slice out of bounds access in (*File).ImportedSymbols 2019-02-27 08:10:14 +00:00
plan9obj debug/plan9obj: simplify s[:] to s where 2018-10-13 11:24:43 +00:00