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 ) #pragma pack( 1 )
// Must increase left query space after handling!
enum ServerQuery : uint8_t enum ServerQuery : uint8_t
{ {
ServerQueryTerminate, ServerQueryTerminate,

View File

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