@@ -12015,17 +12015,21 @@ debugger_thread (void *arg)
12015
12015
/* This will break if the socket is closed during shutdown too */
12016
12016
if (res != HEADER_LENGTH ) {
12017
12017
DEBUG_PRINTF (1 , "[dbg] transport_recv () returned %d, expected %d.\n" , res , HEADER_LENGTH );
12018
- break ;
12019
- }
12020
-
12021
- p = header ;
12022
- end = header + HEADER_LENGTH ;
12018
+ len = HEADER_LENGTH ;
12019
+ id = 0 ;
12020
+ flags = 0 ;
12021
+ command_set = CMD_SET_VM ;
12022
+ command = CMD_VM_DISPOSE ;
12023
+ } else {
12024
+ p = header ;
12025
+ end = header + HEADER_LENGTH ;
12023
12026
12024
- len = decode_int (p , & p , end );
12025
- id = decode_int (p , & p , end );
12026
- flags = decode_byte (p , & p , end );
12027
- command_set = (CommandSet )decode_byte (p , & p , end );
12028
- command = decode_byte (p , & p , end );
12027
+ len = decode_int (p , & p , end );
12028
+ id = decode_int (p , & p , end );
12029
+ flags = decode_byte (p , & p , end );
12030
+ command_set = (CommandSet )decode_byte (p , & p , end );
12031
+ command = decode_byte (p , & p , end );
12032
+ }
12029
12033
12030
12034
g_assert (flags == 0 );
12031
12035
0 commit comments