mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Re-copy r3515 into new demangler: "Deal with apparently non-cfront
compliant new[]/delete[] manglings generated by the Portland Group's C++ compiler." git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8711
This commit is contained in:
parent
e9c7a88688
commit
ab002e71db
@ -4582,6 +4582,22 @@ demangle_function_name (struct work_stuff *work, const char **mangled,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* BEGIN hack inserted 20050403 by JRS to deal with apparently
|
||||
non-cfront compliant new[]/delete[] manglings generated by
|
||||
the Portland Group's C++ compiler. */
|
||||
else
|
||||
if (strcmp (declp -> b, "__nwa") == 0) {
|
||||
string_clear (declp);
|
||||
string_append (declp, "operator new[]");
|
||||
}
|
||||
else
|
||||
if (strcmp (declp -> b, "__dla") == 0) {
|
||||
string_clear (declp);
|
||||
string_append (declp, "operator delete[]");
|
||||
}
|
||||
/* END hack */
|
||||
|
||||
else
|
||||
{
|
||||
if (declp->b[2] == 'a' && declp->b[5] == '\0')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user