Server queries must be always acknowledged.

This commit is contained in:
Bartosz Taudul 2021-06-12 14:41:53 +02:00
parent 0a954fda87
commit 0168ab6535
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3218,14 +3218,15 @@ static bool EnsureReadable( uintptr_t address )
void Profiler::HandleSymbolQuery( uint64_t symbol )
{
#ifdef TRACY_HAS_CALLSTACK
#ifdef __ANDROID__
# ifdef __ANDROID__
// On Android it's common for code to be in mappings that are only executable
// but not readable.
if( !EnsureReadable( symbol ) )
{
AckServerQuery();
return;
}
#endif
# endif
const auto sym = DecodeSymbolAddress( symbol );
SendSingleString( sym.file );