]> Cypherpunks repositories - gostls13.git/commitdiff
debug/dwarf: report the value of an unrecognized attribute format
authorIan Lance Taylor <iant@golang.org>
Mon, 14 Oct 2013 17:53:55 +0000 (10:53 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 14 Oct 2013 17:53:55 +0000 (10:53 -0700)
R=golang-dev, r, minux.ma
CC=golang-dev
https://golang.org/cl/14669045

src/pkg/debug/dwarf/entry.go

index 13d8d5ecf9d36d81cf57dce20c0c15a36ef06f50..6e6fa0f59063a1cbba3d265ab81a2b3e5f64152f 100644 (file)
 
 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: