Jason Molenda | 02706c3 | 2013-11-08 04:59:54 +0000 | [diff] [blame^] | 1 | //===-- HistoryThread.h -----------------------------------------*- 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 | #ifndef liblldb_HistoryThread_h_ |
| 11 | #define liblldb_HistoryThread_h_ |
| 12 | |
| 13 | #include "lldb/lldb-private.h" |
| 14 | #include "lldb/Host/Mutex.h" |
| 15 | #include "lldb/Core/Broadcaster.h" |
| 16 | #include "lldb/Core/Event.h" |
| 17 | #include "lldb/Core/UserID.h" |
| 18 | #include "lldb/Core/UserSettingsController.h" |
| 19 | #include "lldb/Target/ExecutionContextScope.h" |
| 20 | #include "lldb/Target/StackFrameList.h" |
| 21 | #include "lldb/Target/Thread.h" |
| 22 | |
| 23 | namespace lldb_private { |
| 24 | |
| 25 | class HistoryThread : public lldb_private::Thread |
| 26 | { |
| 27 | public: |
| 28 | HistoryThread (lldb_private::Process &process, std::vector<lldb::addr_t> pcs, uint32_t stop_id, bool stop_id_is_valid); |
| 29 | |
| 30 | virtual ~HistoryThread (); |
| 31 | |
| 32 | virtual lldb::RegisterContextSP |
| 33 | GetRegisterContext (); |
| 34 | |
| 35 | virtual lldb::RegisterContextSP |
| 36 | CreateRegisterContextForFrame (StackFrame *frame); |
| 37 | |
| 38 | virtual void |
| 39 | RefreshStateAfterStop() { } |
| 40 | |
| 41 | bool |
| 42 | CalculateStopInfo () { return false; } |
| 43 | |
| 44 | protected: |
| 45 | virtual lldb::StackFrameListSP |
| 46 | GetStackFrameList (); |
| 47 | |
| 48 | mutable Mutex m_framelist_mutex; |
| 49 | lldb::StackFrameListSP m_framelist; |
| 50 | std::vector<lldb::addr_t> m_pcs; |
| 51 | uint32_t m_stop_id; |
| 52 | bool m_stop_id_is_valid; |
| 53 | }; |
| 54 | |
| 55 | } // namespace lldb_private |
| 56 | |
| 57 | #endif // liblldb_HistoryThread_h_ |