Add missing query space extensions.

This commit is contained in:
Bartosz Taudul 2020-03-25 20:33:50 +01:00
parent cda285ceb7
commit ea507289c6
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ enum { WelcomeMessageHostInfoSize = 1024 };
#pragma pack( 1 )
// Must increase left query space after handling!
enum ServerQuery : uint8_t
{
ServerQueryTerminate,

View File

@ -2828,6 +2828,7 @@ bool Worker::DispatchProcess( const QueueItem& ev, const char*& ptr )
break;
case QueueType::SymbolCode:
AddSymbolCode( ev.stringTransfer.ptr, ptr, sz );
m_serverQuerySpaceLeft++;
break;
default:
assert( false );
@ -2872,6 +2873,7 @@ bool Worker::DispatchProcess( const QueueItem& ev, const char*& ptr )
break;
case QueueType::ExternalName:
AddExternalName( ev.stringTransfer.ptr, ptr, sz );
m_serverQuerySpaceLeft++;
break;
case QueueType::ExternalThreadName:
AddExternalThreadName( ev.stringTransfer.ptr, ptr, sz );
@ -3765,6 +3767,7 @@ bool Worker::Process( const QueueItem& ev )
break;
case QueueType::SymbolInformation:
ProcessSymbolInformation( ev.symbolInformation );
m_serverQuerySpaceLeft++;
break;
case QueueType::Terminate:
m_terminate = true;