Make codesighs work on OSX again. Bug 388891, patch by Vlad Sukhoy
authorbzbarsky@mit.edu
Fri, 20 Jul 2007 20:23:35 -0700
changeset 3730 79d84a23d87599111984ea5062cd44d8063cdcd1
parent 3729 2f40809ff23b4b47b7c0552d0e56905851ad2e55
child 3731 7c7223c75568e8bc316a85e9c90c64a68c909d61
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
bugs388891
milestone1.9a7pre
Make codesighs work on OSX again. Bug 388891, patch by Vlad Sukhoy <vladimir.sukhoy@gmail.com>, r=shebs
tools/codesighs/nm_wrap_osx.pl
--- a/tools/codesighs/nm_wrap_osx.pl
+++ b/tools/codesighs/nm_wrap_osx.pl
@@ -49,17 +49,17 @@ my($prev_kind) = "";
 my($prev_symbol) = "";
 
 open(NM_OUTPUT, "nm -fnol $ARGV[0] | c++filt |") or die "nm failed to run on $ARGV[0]\n";
 while (<NM_OUTPUT>)
 {
   my($line) = $_;
   chomp($line);
   
-  if ($line =~ /^([^:]+):([0-9a-f]{8}) (\w) (.+)$/)
+  if ($line =~ /^([^:]+):\s*([0-9a-f]{8}) (\w) (.+)$/)
   {
     my($module) = $1;
     my($addr)   = $2;
     my($kind)   = $3;
     my($symbol) = $4;
   
     # we expect the input to have been piped through c++filt to
     # demangle symbols. For some reason, it doesn't always demangle