HomePhabricator

Remove HostThreadLinux/Free/NetBSD

Authored by labath on Mar 17 2017, 2:51 AM.

Description

Remove HostThreadLinux/Free/NetBSD

Summary:
These classes existed only because of the GetName() static function,
which can be moved to a more natural place anyway. I move the linux
version to NativeProcessLinux (and get rid of ProcFileReader), the
freebsd version to ProcessFreeBSD (and fix a bug where it was using the
current process ID, instead of the inferior pid), and remove the NetBSD
version (which was probably incorrect anyway, as it assumes the current
process instead of the inferior.

I also add an llgs test to that verifies thread names are read
correctly.

Reviewers: zturner, krytarowski, emaste

Subscribers: lldb-commits, mgorny

Differential Revision: https://reviews.llvm.org/D30981

llvm-svn: 298058

Details

Committed
labathMar 17 2017, 2:51 AM
Differential Revision
D30981: Remove HostThreadLinux/Free/NetBSD
Parents
rGc7c9b75804e8: [clang-tidy] Verify some conditions in a matcher instead of check(). NFC
Branches
Unknown
Tags
Unknown