From e2d4f0d7ce91e12fd2eb1fdbccfb5d80947078d8 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Wed, 19 Jan 2011 07:54:15 +0000 Subject: Took the timeout for a ClangUserExpression down from a 10 second timeout to 500 ms. Make MachThreadList more threadsafe. Added code to make sure the thread register state was properly flushed for x86_64. Fixed an missing return code for the current thread in the new thread suffix code. Improved debugserver logging. llvm-svn: 123815 --- lldb/tools/debugserver/source/MacOSX/MachThreadList.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lldb/tools/debugserver/source/MacOSX/MachThreadList.h') diff --git a/lldb/tools/debugserver/source/MacOSX/MachThreadList.h b/lldb/tools/debugserver/source/MacOSX/MachThreadList.h index 1a17618a7e3..4ffa7e6610e 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachThreadList.h +++ b/lldb/tools/debugserver/source/MacOSX/MachThreadList.h @@ -26,8 +26,6 @@ public: void Clear (); void Dump () const; - void GetRegisterState (int flavor, bool force); - void SetRegisterState (int flavor); bool GetRegisterValue (nub_thread_t tid, uint32_t reg_set_idx, uint32_t reg_idx, DNBRegisterValue *reg_value) const; bool SetRegisterValue (nub_thread_t tid, uint32_t reg_set_idx, uint32_t reg_idx, const DNBRegisterValue *reg_value) const; nub_size_t GetRegisterContext (nub_thread_t tid, void *buf, size_t buf_len); @@ -46,7 +44,6 @@ public: nub_size_t NumThreads () const; nub_thread_t ThreadIDAtIndex (nub_size_t idx) const; nub_thread_t CurrentThreadID (); - uint32_t GetThreadIndexByID (thread_t tid) const; void CurrentThread (MachThreadSP& threadSP); void NotifyBreakpointChanged (const DNBBreakpoint *bp); uint32_t EnableHardwareBreakpoint (const DNBBreakpoint *bp) const; @@ -55,7 +52,7 @@ public: bool DisableHardwareWatchpoint (const DNBBreakpoint *wp) const; uint32_t GetThreadIndexForThreadStoppedWithSignal (const int signo) const; - MachThread * GetThreadByID (nub_thread_t tid) const; + MachThreadSP GetThreadByID (nub_thread_t tid) const; protected: typedef std::vector collection; @@ -66,7 +63,7 @@ protected: // const_iterator FindThreadByID (thread_t tid) const; collection m_threads; - PThreadMutex m_threads_mutex; + mutable PThreadMutex m_threads_mutex; MachThreadSP m_current_thread; }; -- cgit v1.2.3