blob: e3b72ef305fcf64f4f0a7db9b9a3023c3201119f [file] [log] [blame]
Michael Sartain9f822cd2013-07-31 23:27:46 +00001//===-- LinuxThread.cpp -----------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// C Includes
11// C++ Includes
12// Other libraries and framework includes
13// Project includes
14#include "LinuxThread.h"
15
16using namespace lldb;
17using namespace lldb_private;
Tamas Berghammerdb264a62015-03-31 09:52:22 +000018using namespace lldb_private::process_linux;
Michael Sartain9f822cd2013-07-31 23:27:46 +000019
20//------------------------------------------------------------------------------
21// Constructors and destructors.
22
23LinuxThread::LinuxThread(Process &process, lldb::tid_t tid)
24 : POSIXThread(process, tid)
25{
26}
27
28LinuxThread::~LinuxThread()
29{
30}
31
32//------------------------------------------------------------------------------
33// ProcessInterface protocol.
34
35void
36LinuxThread::RefreshStateAfterStop()
37{
38 // Invalidate the thread names every time we get a stop event on Linux so we
39 // will re-read the procfs comm virtual file when folks ask for the thread name.
40 m_thread_name_valid = false;
41
42 POSIXThread::RefreshStateAfterStop();
43}