diff options
| author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-10-13 05:04:13 +0000 |
|---|---|---|
| committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-10-13 05:04:13 +0000 |
| commit | 910af4d9dc95f51c4ac35593076e8f7bd1ba723d (patch) | |
| tree | 5ce1daa49d4eecc2b07e9fd9023088508b50a540 /lldb/source/Host/netbsd/ThisThread.cpp | |
| parent | 9f824dab1d3a06d29293b2a3ed4fdc108874c89a (diff) | |
| download | bcm5719-llvm-910af4d9dc95f51c4ac35593076e8f7bd1ba723d.tar.gz bcm5719-llvm-910af4d9dc95f51c4ac35593076e8f7bd1ba723d.zip | |
Preliminary NetBSD support
Summary:
This adds platform code without the cmake/gmake glue to the existing infrastructure.
The missing and incompatibility ptrace(2) bits (existing in FreeBSD) are under active research and development and will be submitted once verified to work.
This code was tested to build and run on NetBSD-current/amd64.
Proper build scripts will be integrated separately as a new commit.
Reviewers: joerg
Subscribers: tfiala, brucem, labath, emaste, lldb-commits
Differential Revision: http://reviews.llvm.org/D13334
llvm-svn: 250146
Diffstat (limited to 'lldb/source/Host/netbsd/ThisThread.cpp')
| -rw-r--r-- | lldb/source/Host/netbsd/ThisThread.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lldb/source/Host/netbsd/ThisThread.cpp b/lldb/source/Host/netbsd/ThisThread.cpp new file mode 100644 index 00000000000..dff5d9e0f10 --- /dev/null +++ b/lldb/source/Host/netbsd/ThisThread.cpp @@ -0,0 +1,30 @@ +//===-- ThisThread.cpp ------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "lldb/Host/HostNativeThread.h" +#include "lldb/Host/ThisThread.h" + +#include "llvm/ADT/SmallVector.h" + +#include <pthread.h> +#include <string.h> + +using namespace lldb_private; + +void +ThisThread::SetName(llvm::StringRef name) +{ + HostNativeThread::SetName(::pthread_self(), name); +} + +void +ThisThread::GetName(llvm::SmallVectorImpl<char> &name) +{ + HostNativeThread::GetName(::pthread_self(), name); +} |

