[Lldb-commits] [lldb] r211549 - Fix error handling for the AppleGetQueues and AppleGetPendingItems

Jason Molenda jmolenda at apple.com
Mon Jun 23 15:45:54 PDT 2014


Author: jmolenda
Date: Mon Jun 23 17:45:54 2014
New Revision: 211549

URL: http://llvm.org/viewvc/llvm-project?rev=211549&view=rev
Log:
Fix error handling for the AppleGetQueues and AppleGetPendingItems
ClangFunctions if the clang function compilation fails for any reason.
<rdar://problem/16793965> 

Modified:
    lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp
    lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp

Modified: lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp?rev=211549&r1=211548&r2=211549&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp (original)
+++ lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp Mon Jun 23 17:45:54 2014
@@ -373,6 +373,7 @@ AppleGetPendingItemsHandler::GetPendingI
     if (m_get_pending_items_function == NULL)
     {
         error.SetErrorString ("Unable to compile function to call __introspection_dispatch_queue_get_pending_items");
+        return return_value;
     }
 
 

Modified: lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp?rev=211549&r1=211548&r2=211549&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp (original)
+++ lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp Mon Jun 23 17:45:54 2014
@@ -363,6 +363,7 @@ AppleGetQueuesHandler::GetCurrentQueues
     if (m_get_queues_function == NULL)
     {
         error.SetErrorString ("Unable to compile function to call __introspection_dispatch_get_queues");
+        return return_value;
     }
 
     StreamString errors;





More information about the lldb-commits mailing list