diff options
author | Harald Weppner <harald.weppner@tidalscale.com> | 2014-03-18 00:00:14 -0700 |
---|---|---|
committer | Harald Weppner <harald.weppner@tidalscale.com> | 2014-03-18 00:00:14 -0700 |
commit | 4bbf8181f384d6bd8a634b22543f83e5b949b609 (patch) | |
tree | 516c9c1c91c033b7081f60cb06da70106bfc5d1e /bin | |
parent | bf543df20ccd9e2c422751908cabf073bc7f5d4b (diff) | |
download | platform_external_jemalloc_new-4bbf8181f384d6bd8a634b22543f83e5b949b609.tar.gz platform_external_jemalloc_new-4bbf8181f384d6bd8a634b22543f83e5b949b609.tar.bz2 platform_external_jemalloc_new-4bbf8181f384d6bd8a634b22543f83e5b949b609.zip |
Consistently use debug lib(s) if present
Fixes a situation where nm uses the debug lib but
addr2line does not, which completely messes up the symbol
lookup.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pprof | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -4607,6 +4607,12 @@ sub ExtractSymbols { my $finish = $lib->[2]; my $offset = $lib->[3]; + # Use debug library if it exists + my $debug_libname = DebuggingLibrary($libname); + if ($debug_libname) { + $libname = $debug_libname; + } + # Get list of pcs that belong in this library. my $contained = []; my ($start_pc_index, $finish_pc_index); @@ -5037,7 +5043,7 @@ sub GetProcedureBoundariesViaNm { # Tag this routine with the starting address in case the image # has multiple occurrences of this routine. We use a syntax - # that resembles template paramters that are automatically + # that resembles template parameters that are automatically # stripped out by ShortFunctionName() $this_routine .= "<$start_val>"; |