This revision was automatically updated to reflect the committed changes.
Closed by commit rL328761: Prevent double release of mach ports (authored by 
friss, committed by ).
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

https://reviews.llvm.org/D45011

Files:
  lldb/trunk/source/Plugins/Process/Darwin/MachException.cpp
  lldb/trunk/tools/debugserver/source/MacOSX/MachException.cpp


Index: lldb/trunk/source/Plugins/Process/Darwin/MachException.cpp
===================================================================
--- lldb/trunk/source/Plugins/Process/Darwin/MachException.cpp
+++ lldb/trunk/source/Plugins/Process/Darwin/MachException.cpp
@@ -92,8 +92,6 @@
                 (uint64_t)(exc_data_count > 0 ? exc_data[0] : 0xBADDBADD),
                 (uint64_t)(exc_data_count > 1 ? exc_data[1] : 0xBADDBADD));
   }
-  mach_port_deallocate(mach_task_self(), task_port);
-  mach_port_deallocate(mach_task_self(), thread_port);
 
   return KERN_FAILURE;
 }
Index: lldb/trunk/tools/debugserver/source/MacOSX/MachException.cpp
===================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachException.cpp
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachException.cpp
@@ -86,8 +86,6 @@
                    (uint64_t)(exc_data_count > 0 ? exc_data[0] : 0xBADDBADD),
                    (uint64_t)(exc_data_count > 1 ? exc_data[1] : 0xBADDBADD));
   }
-  mach_port_deallocate(mach_task_self(), task_port);
-  mach_port_deallocate(mach_task_self(), thread_port);
 
   return KERN_FAILURE;
 }


Index: lldb/trunk/source/Plugins/Process/Darwin/MachException.cpp
===================================================================
--- lldb/trunk/source/Plugins/Process/Darwin/MachException.cpp
+++ lldb/trunk/source/Plugins/Process/Darwin/MachException.cpp
@@ -92,8 +92,6 @@
                 (uint64_t)(exc_data_count > 0 ? exc_data[0] : 0xBADDBADD),
                 (uint64_t)(exc_data_count > 1 ? exc_data[1] : 0xBADDBADD));
   }
-  mach_port_deallocate(mach_task_self(), task_port);
-  mach_port_deallocate(mach_task_self(), thread_port);
 
   return KERN_FAILURE;
 }
Index: lldb/trunk/tools/debugserver/source/MacOSX/MachException.cpp
===================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachException.cpp
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachException.cpp
@@ -86,8 +86,6 @@
                    (uint64_t)(exc_data_count > 0 ? exc_data[0] : 0xBADDBADD),
                    (uint64_t)(exc_data_count > 1 ? exc_data[1] : 0xBADDBADD));
   }
-  mach_port_deallocate(mach_task_self(), task_port);
-  mach_port_deallocate(mach_task_self(), thread_port);
 
   return KERN_FAILURE;
 }
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to