1 //===-- HistoryUnwind.h -----------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_HistoryUnwind_h_
10 #define liblldb_HistoryUnwind_h_
14 #include "lldb/Target/Unwind.h"
15 #include "lldb/lldb-private.h"
17 namespace lldb_private {
19 class HistoryUnwind : public lldb_private::Unwind {
21 HistoryUnwind(Thread &thread, std::vector<lldb::addr_t> pcs);
23 ~HistoryUnwind() override;
26 void DoClear() override;
28 lldb::RegisterContextSP
29 DoCreateRegisterContextForFrame(StackFrame *frame) override;
31 bool DoGetFrameInfoAtIndex(uint32_t frame_idx, lldb::addr_t &cfa,
33 bool &behaves_like_zeroth_frame) override;
34 uint32_t DoGetFrameCount() override;
37 std::vector<lldb::addr_t> m_pcs;
40 } // namespace lldb_private
42 #endif // liblldb_HistoryUnwind_h_