aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2013-10-14 10:53:55 -0700
committerIan Lance Taylor <iant@golang.org>2013-10-14 10:53:55 -0700
commitc78d67fb86f5b2c3687c3c8d0152f75871ff490d (patch)
tree66faee8c405e613be7a255fc6eecd0ae70bbea05
parent89ebc28b587228c6ce90b78db33925e19aeba7d5 (diff)
downloadgo-c78d67fb86f5b2c3687c3c8d0152f75871ff490d.tar.gz
go-c78d67fb86f5b2c3687c3c8d0152f75871ff490d.zip
debug/dwarf: report the value of an unrecognized attribute format
R=golang-dev, r, minux.ma CC=golang-dev https://golang.org/cl/14669045
-rw-r--r--src/pkg/debug/dwarf/entry.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pkg/debug/dwarf/entry.go b/src/pkg/debug/dwarf/entry.go
index 13d8d5ecf9..6e6fa0f590 100644
--- a/src/pkg/debug/dwarf/entry.go
+++ b/src/pkg/debug/dwarf/entry.go
@@ -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: