summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SystemRuntime
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2014-06-23 22:45:54 +0000
committerJason Molenda <jmolenda@apple.com>2014-06-23 22:45:54 +0000
commitfa4286eab7d07baf784cc36a04007977bccc85a9 (patch)
tree2c9c2d60440d044164f4d01bdcc5879000efbe5c /lldb/source/Plugins/SystemRuntime
parent96b676c312d470461728eaf6370abac0785ab2dc (diff)
downloadbcm5719-llvm-fa4286eab7d07baf784cc36a04007977bccc85a9.tar.gz
bcm5719-llvm-fa4286eab7d07baf784cc36a04007977bccc85a9.zip
Fix error handling for the AppleGetQueues and AppleGetPendingItems
ClangFunctions if the clang function compilation fails for any reason. <rdar://problem/16793965> llvm-svn: 211549
Diffstat (limited to 'lldb/source/Plugins/SystemRuntime')
-rw-r--r--lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp1
-rw-r--r--lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp
index 51b797aa1ac..16af24b09fb 100644
--- a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp
+++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp
@@ -373,6 +373,7 @@ AppleGetPendingItemsHandler::GetPendingItems (Thread &thread, addr_t queue, addr
if (m_get_pending_items_function == NULL)
{
error.SetErrorString ("Unable to compile function to call __introspection_dispatch_queue_get_pending_items");
+ return return_value;
}
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp
index cd15d475150..80f61a53ea5 100644
--- a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp
+++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp
@@ -363,6 +363,7 @@ AppleGetQueuesHandler::GetCurrentQueues (Thread &thread, addr_t page_to_free, ui
if (m_get_queues_function == NULL)
{
error.SetErrorString ("Unable to compile function to call __introspection_dispatch_get_queues");
+ return return_value;
}
StreamString errors;
OpenPOWER on IntegriCloud