Linux fix
authorAndrew Au <andrewau@microsoft.com>
Tue, 28 Aug 2018 00:40:13 +0000 (17:40 -0700)
committerAndrew Au <cshung@gmail.com>
Wed, 7 Nov 2018 02:34:47 +0000 (18:34 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/5e324dad533a8cfe774d39c2bed2ebdc616547ac

src/coreclr/src/debug/shared/dbgtransportsession.cpp

index 95fdf25..81ef767 100644 (file)
@@ -2202,6 +2202,7 @@ DWORD DbgTransportSession::GetEventSize(DebuggerIPCEvent *pEvent)
     case DB_IPCE_GET_NGEN_COMPILER_FLAGS:
     case DB_IPCE_DETACH_FROM_PROCESS:
     case DB_IPCE_CONTROL_C_EVENT_RESULT:
+    case DB_IPCE_DATA_BREAKPOINT:
         cbAdditionalSize = 0;
         break;
 
@@ -2493,6 +2494,14 @@ DWORD DbgTransportSession::GetEventSize(DebuggerIPCEvent *pEvent)
         cbAdditionalSize = sizeof(pEvent->CustomNotification);
         break;
             
+    case DB_IPCE_GET_CONTAINER:
+        cbAdditionalSize = sizeof(pEvent->GetContainer);
+        break;
+            
+    case DB_IPCE_GET_CONTAINER_RESULT:
+        cbAdditionalSize = sizeof(pEvent->GetContainerResult);
+        break;
+            
     default:
         printf("Unknown debugger event type: 0x%x\n", (pEvent->type & DB_IPCE_TYPE_MASK));
         _ASSERTE(!"Unknown debugger event type");