Handle source code queries in no-callstack builds.

The symbol worker thread, which answers source code queries, only exists
when call stack support is compiled in. Handle the query directly in the
main thread so it is always answered and the server can terminate.
This commit is contained in:
Bartosz Taudul
2026-08-19 17:53:11 +02:00
parent ad99139f8e
commit 2a3792aaa3

View File

@@ -3980,7 +3980,14 @@ bool Profiler::HandleServerQuery()
break;
#endif
case ServerQuerySourceCode:
#ifdef TRACY_HAS_CALLSTACK
QueueSourceCodeQuery( uint32_t( ptr ) );
#else
TRACY_ASSERT( m_queryData );
HandleSourceCodeQuery( m_queryData, m_queryImage, uint32_t( ptr ) );
m_queryData = nullptr;
m_queryImage = nullptr;
#endif
break;
case ServerQueryDataTransfer:
if( m_queryData )