]> Cypherpunks repositories - gostls13.git/commit
cmd/pprof: never use c++filt
authorRuss Cox <rsc@golang.org>
Mon, 11 Mar 2013 22:15:23 +0000 (18:15 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 Mar 2013 22:15:23 +0000 (18:15 -0400)
commita25c403b3a21c84c7ece8b00b9229b00a31e6d40
tree61e3ddd9badcb0f74d32f41cdb01f717bcc309df
parentd2be8f29485f80d41d84970aa32329b3621c9dab
cmd/pprof: never use c++filt

The copy of c++filt shipped on OS X is six years old,
and in our case it does far more mangling than it
does demangling. People on non-OS X systems will
have a working nm --demangle, so this won't affect them.

$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.8.2
BuildVersion: 12C2034
$ c++filt --version
GNU c++filt 070207 20070207
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
$

$ go tool nm -n revcomp | grep quoteWith
   4f560 T strconv.quoteWith
$ go tool nm -n revcomp | grep quoteWith  | c++filt
   f560 T strconv.quoteWith
$

$ nm -n revcomp | grep quoteWith
000000000004f560 t _strconv.quoteWith
$ nm -n revcomp | grep quoteWith | c++filt
000000000004f560 unsigned short _strconv.quoteWith
$

Fixes #4818.

R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/7729043
misc/pprof