2
0
mirror of https://github.com/wolfpld/tracy synced 2026-01-19 04:52:09 +00:00

relax regex match in symbolication substitution

See discussion https://github.com/wolfpld/tracy/issues/1075
This commit is contained in:
Oleg Bogdanov
2025-06-18 18:50:05 -07:00
committed by GitHub
parent 250daeabe7
commit 84cbf46cc5

View File

@@ -15,7 +15,7 @@ bool ApplyPathSubstitutions( std::string& path, const PathSubstitutionList& path
{
for( const auto& substitution : pathSubstitutionlist )
{
if( std::regex_match(path, substitution.first) )
if( std::regex_search(path, substitution.first) )
{
path = std::regex_replace( path, substitution.first, substitution.second );
return true;
@@ -168,4 +168,4 @@ void PatchSymbols( tracy::Worker& worker, const std::vector<std::string>& pathSu
{
std::cerr << "Failed to patch symbols" << std::endl;
}
}
}