summaryrefslogtreecommitdiff
path: root/src/cmd/addr2line
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-04-15 20:06:08 -0400
committerRuss Cox <rsc@golang.org>2014-04-15 20:06:08 -0400
commit44f96d4488fb6f11e7b1a3b7197fd47267e00dd9 (patch)
tree0afc28fedfa603bacabb2edd86fd2caee77aa7ab /src/cmd/addr2line
parent22505cd2a1f6006c50a90999561463eba57897de (diff)
downloadgo-git-44f96d4488fb6f11e7b1a3b7197fd47267e00dd9.tar.gz
addr2line, objdump: write doc comments
LGTM=r R=r CC=golang-codereviews https://golang.org/cl/88050046
Diffstat (limited to 'src/cmd/addr2line')
-rw-r--r--src/cmd/addr2line/main.go15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/cmd/addr2line/main.go b/src/cmd/addr2line/main.go
index 67168c2f9d..c09b2616ea 100644
--- a/src/cmd/addr2line/main.go
+++ b/src/cmd/addr2line/main.go
@@ -2,8 +2,19 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// addr2line simulation - only enough to make pprof work on Macs
-
+// Addr2line is a minimal simulation of the GNU addr2line tool,
+// just enough to support pprof.
+//
+// Usage:
+// go tool addr2line binary
+//
+// Addr2line reads hexadecimal addresses, one per line and without a 0x prefix,
+// from standard input. For each input address, addr2line prints two output lines,
+// first the name of the function containing the address and second the file:line
+// of the source code corresponding to that address.
+//
+// This tool is intended for use only by pprof; its interface may change or
+// it may be deleted entirely in future releases.
package main
import (