diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-01-19 07:54:15 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-01-19 07:54:15 +0000 |
| commit | e2d4f0d7ce91e12fd2eb1fdbccfb5d80947078d8 (patch) | |
| tree | 50fbcef099c621e8aab794f33536c3d4482bedc8 /lldb/tools/debugserver/source/MacOSX/MachThreadList.h | |
| parent | 424cec97bdff219cd976dce85a405140069c57f9 (diff) | |
| download | bcm5719-llvm-e2d4f0d7ce91e12fd2eb1fdbccfb5d80947078d8.tar.gz bcm5719-llvm-e2d4f0d7ce91e12fd2eb1fdbccfb5d80947078d8.zip | |
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
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachThreadList.h')
| -rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachThreadList.h | 7 |
1 files changed, 2 insertions, 5 deletions
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<MachThreadSP> 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; }; |

