Commit c78d67fb authored by Ian Lance Taylor's avatar Ian Lance Taylor

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

R=golang-dev, r, minux.ma
CC=golang-dev
https://golang.org/cl/14669045
parent 89ebc28b
...@@ -10,7 +10,10 @@ ...@@ -10,7 +10,10 @@
package dwarf package dwarf
import "errors" import (
"errors"
"strconv"
)
// a single entry's description: a sequence of attributes // a single entry's description: a sequence of attributes
type abbrev struct { type abbrev struct {
...@@ -152,7 +155,7 @@ func (b *buf) entry(atab abbrevTable, ubase Offset) *Entry { ...@@ -152,7 +155,7 @@ func (b *buf) entry(atab abbrevTable, ubase Offset) *Entry {
var val interface{} var val interface{}
switch fmt { switch fmt {
default: default:
b.error("unknown entry attr format") b.error("unknown entry attr format 0x" + strconv.FormatInt(int64(fmt), 16))
// address // address
case formAddr: case formAddr:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment