diff options
author | Michael Sartain <mikesart@valvesoftware.com> | 2013-07-31 23:27:46 +0000 |
---|---|---|
committer | Michael Sartain <mikesart@valvesoftware.com> | 2013-07-31 23:27:46 +0000 |
commit | 9f822cd1ec166a777d9d20f0595abe99844b0a60 (patch) | |
tree | 48cf3117df23a044a75a5153d852992dcab16dd4 /lldb/source/Plugins/Process/Linux/LinuxThread.h | |
parent | 395958ea6f8c435cc57caae59a02166afc141d1c (diff) | |
download | bcm5719-llvm-9f822cd1ec166a777d9d20f0595abe99844b0a60.tar.gz bcm5719-llvm-9f822cd1ec166a777d9d20f0595abe99844b0a60.zip |
Fix thread name updating in Linux. "thread list" should report correct names always now.
Created new LinuxThread class inherited from POSIXThread and removed linux / freebsd ifdefs
Removed several un-needed set thread name calls
CR (and multiple suggestions): mkopec
llvm-svn: 187545
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/LinuxThread.h')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/LinuxThread.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Linux/LinuxThread.h b/lldb/source/Plugins/Process/Linux/LinuxThread.h new file mode 100644 index 00000000000..7d253aa98eb --- /dev/null +++ b/lldb/source/Plugins/Process/Linux/LinuxThread.h @@ -0,0 +1,43 @@ +//===-- LinuxThread.h -------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef liblldb_LinuxThread_H_ +#define liblldb_LinuxThread_H_ + +// Other libraries and framework includes +#include "POSIXThread.h" + +//------------------------------------------------------------------------------ +// @class LinuxThread +// @brief Abstraction of a Linux thread. +class LinuxThread + : public POSIXThread +{ +public: + + //------------------------------------------------------------------ + // Constructors and destructors + //------------------------------------------------------------------ + LinuxThread(lldb_private::Process &process, lldb::tid_t tid); + + virtual ~LinuxThread(); + + //-------------------------------------------------------------------------- + // LinuxThread internal API. + + // POSIXThread override + virtual void + RefreshStateAfterStop(); + +protected: + virtual void + TraceNotify(const ProcessMessage &message); +}; + +#endif // #ifndef liblldb_LinuxThread_H_ |