1 //===-- HistoryUnwind.h -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_HistoryUnwind_h_
11 #define liblldb_HistoryUnwind_h_
17 // Other libraries and framework includes
19 #include "lldb/lldb-private.h"
20 #include "lldb/Host/Mutex.h"
21 #include "lldb/Target/Unwind.h"
23 namespace lldb_private {
25 class HistoryUnwind : public lldb_private::Unwind
28 HistoryUnwind (Thread &thread, std::vector<lldb::addr_t> pcs, bool stop_id_is_valid);
30 ~HistoryUnwind() override;
36 lldb::RegisterContextSP
37 DoCreateRegisterContextForFrame(StackFrame *frame) override;
40 DoGetFrameInfoAtIndex(uint32_t frame_idx,
42 lldb::addr_t& pc) override;
44 DoGetFrameCount() override;
48 std::vector<lldb::addr_t> m_pcs;
49 bool m_stop_id_is_valid;
52 } // namespace lldb_private
54 #endif // liblldb_HistoryUnwind_h_