Safinsss / data-race-test

Automatically exported from code.google.com/p/data-race-test
0 stars 1 forks source link

c++filt can cut off the end of type names #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
==========

#include <set>
#include <string>

class ExtensionExtent {}; 

void F(const ExtensionExtent& e, std::set<std::string>* result) {

}

int main() {
  ExtensionExtent e;
  F(e, NULL);
  return 0;
}
=====
->
 $ g++ test.cpp && objdump -t a.out | grep " F " | gawk ' { print $6 } ' | c++filt >cppf
 $ grep -o "<" cppf | wc -l; grep -o ">" cppf | wc -l
 12
 11

which means the ">*" at the end of the second parameter type was dropped.
This makes NormalizeFunctionName mad...

Original issue reported on code.google.com by timurrrr on 6 Apr 2011 at 11:23

GoogleCodeExporter commented 8 years ago
Looks like this is a c++filt-only problem and Valgrind is not affected (i.e. 
gives us good frames)

Let's keep this as WontFix as a KB item.

Original comment by timurrrr on 6 Apr 2011 at 1:49