diff options
author | Greg Clayton <gclayton@apple.com> | 2011-01-25 06:55:13 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-01-25 06:55:13 +0000 |
commit | cdc7322bb12ebe0426d9f481a6138c0464e5716e (patch) | |
tree | 1af03e42bab3bbdb9370368ee6f3d48f54a3e4ed /lldb/tools/debugserver/source/MacOSX/MachThread.h | |
parent | 4cd178020c4274d946bb759b84328527de613047 (diff) | |
download | bcm5719-llvm-cdc7322bb12ebe0426d9f481a6138c0464e5716e.tar.gz bcm5719-llvm-cdc7322bb12ebe0426d9f481a6138c0464e5716e.zip |
Reverting recent thread resume changes as it was causing testing issues.
We will need to try again soon, but this change was causing instability.
llvm-svn: 124180
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachThread.h')
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachThread.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThread.h b/lldb/tools/debugserver/source/MacOSX/MachThread.h index 7a39885bb1b..e7e18fe262c 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachThread.h +++ b/lldb/tools/debugserver/source/MacOSX/MachThread.h @@ -49,6 +49,11 @@ public: uint32_t SequenceID() const { return m_seq_id; } static bool ThreadIDIsValid(thread_t thread); + uint32_t Resume(); + uint32_t Suspend(); + uint32_t SuspendCount() const { return m_suspendCount; } + bool RestoreSuspendCount(); + bool GetRegisterState(int flavor, bool force); bool SetRegisterState(int flavor); uint64_t GetPC(uint64_t failValue = INVALID_NUB_ADDRESS); // Get program counter @@ -87,6 +92,8 @@ public: } bool IsUserReady(); + struct thread_basic_info * + GetBasicInfo (); const char * GetBasicInfoAsString () const; const char * GetName (); @@ -97,13 +104,6 @@ public: } protected: - int32_t Resume(); - int32_t ForceResume(); - int32_t Suspend(); -// uint32_t SuspendCount() const { return m_suspendCount; } - bool RestoreSuspendCount(); - struct thread_basic_info * - GetBasicInfo (bool force); static bool GetBasicInfo(thread_t threadID, struct thread_basic_info *basic_info); bool @@ -118,9 +118,8 @@ protected: nub_state_t m_state; // The state of our process PThreadMutex m_state_mutex; // Multithreaded protection for m_state nub_break_t m_breakID; // Breakpoint that this thread is (stopped)/was(running) at (NULL for none) - struct thread_basic_info m_basic_info; // Basic information for a thread used to see if a thread is valid - bool m_basic_info_valid; - uint32_t m_suspend_count; // The current suspend count + struct thread_basic_info m_basicInfo; // Basic information for a thread used to see if a thread is valid + uint32_t m_suspendCount; // The current suspend count MachException::Data m_stop_exception; // The best exception that describes why this thread is stopped std::auto_ptr<DNBArchProtocol> m_arch_ap; // Arch specific information for register state and more const DNBRegisterSetInfo *const m_reg_sets; // Register set information for this thread @@ -129,7 +128,6 @@ protected: thread_identifier_info_data_t m_ident_info; struct proc_threadinfo m_proc_threadinfo; std::string m_dispatch_queue_name; - #endif }; |