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/Target/Unwind.h"
22 namespace lldb_private {
24 class HistoryUnwind : public lldb_private::Unwind
27 HistoryUnwind (Thread &thread, std::vector<lldb::addr_t> pcs, bool stop_id_is_valid);
29 ~HistoryUnwind() override;
35 lldb::RegisterContextSP
36 DoCreateRegisterContextForFrame(StackFrame *frame) override;
39 DoGetFrameInfoAtIndex(uint32_t frame_idx,
41 lldb::addr_t& pc) override;
43 DoGetFrameCount() override;
47 std::vector<lldb::addr_t> m_pcs;
48 bool m_stop_id_is_valid;
51 } // namespace lldb_private
53 #endif // liblldb_HistoryUnwind_h_