diff options
| author | Greg Clayton <gclayton@apple.com> | 2010-10-31 03:01:06 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2010-10-31 03:01:06 +0000 |
| commit | cfd1aced7ea66eda9b23c227cdd76a2289150a13 (patch) | |
| tree | 24d18ab977aac38caf781ac1f53b7bdb42a3c4d0 /lldb/source/Host | |
| parent | a5df61a341ab35738a2788f222bd9799a060e2ea (diff) | |
| download | bcm5719-llvm-cfd1aced7ea66eda9b23c227cdd76a2289150a13.tar.gz bcm5719-llvm-cfd1aced7ea66eda9b23c227cdd76a2289150a13.zip | |
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.
llvm-svn: 117851
Diffstat (limited to 'lldb/source/Host')
| -rw-r--r-- | lldb/source/Host/common/Host.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index 51702d0e251..2f10ae2ad0a 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/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 @@ Host::GetThreadName (lldb::pid_t pid, lldb::tid_t tid) 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 } |

