diff options
author | Ed Maste <emaste@FreeBSD.org> | 2016-01-04 01:16:32 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2016-01-04 01:16:32 +0000 |
commit | 9f2f44ceeb195c67fbbf0953f03c530f6f1e59d4 (patch) | |
tree | 1a3cc0a2c3d432ddf9ffc14f06bd43e8097fc93c /contrib/llvm/tools/lldb/source/Target/ThreadSpec.cpp | |
parent | 0a97e59728ecf251d065745cb716ffe32b24aa28 (diff) | |
parent | 3bd2e91faeb9eeec1aae82c64a3253afff551cfd (diff) | |
download | src-9f2f44ceeb195c67fbbf0953f03c530f6f1e59d4.tar.gz src-9f2f44ceeb195c67fbbf0953f03c530f6f1e59d4.zip |
Merge LLDB 3.8
As with previous imports a number of plugins not immediately relevant
to FreeBSD have been excluded:
ABIMacOSX_i386
ABIMacOSX_arm
ABIMacOSX_arm64
ABISysV_hexagon
AppleObjCRuntimeV2
AppleObjCRuntimeV1
SystemRuntimeMacOSX
RenderScriptRuntime
GoLanguageRuntime
GoLanguage
ObjCLanguage
ObjCPlusPlusLanguage
ObjectFilePECOFF
DynamicLoaderWindowsDYLD
platform_linux
platform_netbsd
PlatformWindows
PlatformKalimba
platform_android
DynamicLoaderMacOSXDYLD
ObjectContainerUniversalMachO
PlatformRemoteiOS
PlatformMacOSX
OperatingSystemGo
Notes
Notes:
svn path=/projects/clang380-import/; revision=293127
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Target/ThreadSpec.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/Target/ThreadSpec.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/llvm/tools/lldb/source/Target/ThreadSpec.cpp b/contrib/llvm/tools/lldb/source/Target/ThreadSpec.cpp index cb54469ba901..f877f521bd51 100644 --- a/contrib/llvm/tools/lldb/source/Target/ThreadSpec.cpp +++ b/contrib/llvm/tools/lldb/source/Target/ThreadSpec.cpp @@ -1,4 +1,4 @@ -//===-- ThreadSpec.cpp ----------------------------------------------*- C++ -*-===// +//===-- ThreadSpec.cpp ------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,6 +7,10 @@ // //===----------------------------------------------------------------------===// +// C Includes +// C++ Includes +// Other libraries and framework includes +// Project includes #include "lldb/Target/Thread.h" #include "lldb/Target/ThreadSpec.h" @@ -21,7 +25,7 @@ ThreadSpec::ThreadSpec() : { } -ThreadSpec::ThreadSpec (const ThreadSpec &rhs) : +ThreadSpec::ThreadSpec(const ThreadSpec &rhs) : m_index(rhs.m_index), m_tid(rhs.m_tid), m_name(rhs.m_name), @@ -42,19 +46,13 @@ ThreadSpec::operator=(const ThreadSpec &rhs) const char * ThreadSpec::GetName () const { - if (m_name.empty()) - return NULL; - else - return m_name.c_str(); + return m_name.empty() ? nullptr : m_name.c_str(); } const char * ThreadSpec::GetQueueName () const { - if (m_queue_name.empty()) - return NULL; - else - return m_queue_name.c_str(); + return m_queue_name.empty() ? nullptr : m_queue_name.c_str(); } bool @@ -66,6 +64,7 @@ ThreadSpec::TIDMatches (Thread &thread) const lldb::tid_t thread_id = thread.GetID(); return TIDMatches (thread_id); } + bool ThreadSpec::IndexMatches (Thread &thread) const { @@ -74,6 +73,7 @@ ThreadSpec::IndexMatches (Thread &thread) const uint32_t index = thread.GetIndexID(); return IndexMatches (index); } + bool ThreadSpec::NameMatches (Thread &thread) const { @@ -83,6 +83,7 @@ ThreadSpec::NameMatches (Thread &thread) const const char *name = thread.GetName(); return NameMatches (name); } + bool ThreadSpec::QueueNameMatches (Thread &thread) const { @@ -96,7 +97,6 @@ ThreadSpec::QueueNameMatches (Thread &thread) const bool ThreadSpec::ThreadPassesBasicTests (Thread &thread) const { - if (!HasSpecification()) return true; @@ -113,7 +113,6 @@ ThreadSpec::ThreadPassesBasicTests (Thread &thread) const return false; return true; - } bool @@ -121,6 +120,7 @@ ThreadSpec::HasSpecification() const { return (m_index != UINT32_MAX || m_tid != LLDB_INVALID_THREAD_ID || !m_name.empty() || !m_queue_name.empty()); } + void ThreadSpec::GetDescription (Stream *s, lldb::DescriptionLevel level) const { |