debug/dwarf: report the value of an unrecognized attribute format

R=golang-dev, r, minux.ma
CC=golang-dev
https://golang.org/cl/14669045
This commit is contained in:
Ian Lance Taylor 2013-10-14 10:53:55 -07:00
parent 89ebc28b58
commit c78d67fb86

View File

@ -10,7 +10,10 @@
package dwarf
import "errors"
import (
"errors"
"strconv"
)
// a single entry's description: a sequence of attributes
type abbrev struct {
@ -152,7 +155,7 @@ func (b *buf) entry(atab abbrevTable, ubase Offset) *Entry {
var val interface{}
switch fmt {
default:
b.error("unknown entry attr format")
b.error("unknown entry attr format 0x" + strconv.FormatInt(int64(fmt), 16))
// address
case formAddr: