auto start_of_name = mangled.find_first_of('(');
if (start_of_name == std::string::npos)
- return mangled;
+ return "";
auto start_of_offset = mangled.find_first_of('+', start_of_name);
if (start_of_offset == std::string::npos)
- return mangled;
+ return "";
auto end_of_name = mangled.find_first_of(')', start_of_offset);
if (end_of_name == std::string::npos)
- return mangled;
+ return "";
auto file = mangled.substr(0, start_of_name);
auto mangled_symbol_name = mangled.substr(start_of_name + 1, start_of_offset - start_of_name - 1);
}
else
{
- return mangled;
+ return "";
}
}
{
auto demangled = demangle(strings[i]);
- if (demangled.find("caspar::get_call_stack") == std::string::npos)
+ if (!demangled.empty() && demangled.find("caspar::get_call_stack") == std::string::npos)
stream << demangled.c_str() << std::endl;
}