Michael Sartain | 9f822cd | 2013-07-31 23:27:46 +0000 | [diff] [blame] | 1 | //===-- 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 | |
| 16 | using namespace lldb; |
| 17 | using namespace lldb_private; |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 18 | using namespace lldb_private::process_linux; |
Michael Sartain | 9f822cd | 2013-07-31 23:27:46 +0000 | [diff] [blame] | 19 | |
| 20 | //------------------------------------------------------------------------------ |
| 21 | // Constructors and destructors. |
| 22 | |
| 23 | LinuxThread::LinuxThread(Process &process, lldb::tid_t tid) |
| 24 | : POSIXThread(process, tid) |
| 25 | { |
| 26 | } |
| 27 | |
| 28 | LinuxThread::~LinuxThread() |
| 29 | { |
| 30 | } |
| 31 | |
| 32 | //------------------------------------------------------------------------------ |
| 33 | // ProcessInterface protocol. |
| 34 | |
| 35 | void |
| 36 | LinuxThread::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 | } |