Cleaned up the API logging a lot more to reduce redundant information and
keep the file size a bit smaller.
Exposed SBValue::GetExpressionPath() so SBValue users can get an expression
path for their values.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117851 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Host/common/Host.cpp b/source/Host/common/Host.cpp
index 51702d0..2f10ae2 100644
--- a/source/Host/common/Host.cpp
+++ b/source/Host/common/Host.cpp
@@ -22,6 +22,7 @@
#include <sys/wait.h>
#if defined (__APPLE__)
+#include <dispatch/dispatch.h>
#include <libproc.h>
#include <mach-o/dyld.h>
#endif
@@ -545,6 +546,13 @@
name = ThreadNameAccessor (true, pid, tid, NULL);
}
}
+
+ if (name == NULL)
+ {
+ dispatch_queue_t current_queue = ::dispatch_get_current_queue ();
+ if (current_queue != NULL)
+ name = dispatch_queue_get_label (current_queue);
+ }
}
#endif
}