LLDB  mainline
HistoryUnwind.h
Go to the documentation of this file.
1 //===-- HistoryUnwind.h -----------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef liblldb_HistoryUnwind_h_
10 #define liblldb_HistoryUnwind_h_
11 
12 #include <vector>
13 
14 #include "lldb/Target/Unwind.h"
15 #include "lldb/lldb-private.h"
16 
17 namespace lldb_private {
18 
20 public:
21  HistoryUnwind(Thread &thread, std::vector<lldb::addr_t> pcs,
22  bool stop_id_is_valid);
23 
24  ~HistoryUnwind() override;
25 
26 protected:
27  void DoClear() override;
28 
29  lldb::RegisterContextSP
31 
32  bool DoGetFrameInfoAtIndex(uint32_t frame_idx, lldb::addr_t &cfa,
33  lldb::addr_t &pc) override;
34  uint32_t DoGetFrameCount() override;
35 
36 private:
37  std::vector<lldb::addr_t> m_pcs;
38  bool m_stop_id_is_valid;
39 };
40 
41 } // namespace lldb_private
42 
43 #endif // liblldb_HistoryUnwind_h_
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
bool DoGetFrameInfoAtIndex(uint32_t frame_idx, lldb::addr_t &cfa, lldb::addr_t &pc) override
uint32_t DoGetFrameCount() override
uint64_t addr_t
Definition: lldb-types.h:83
lldb::RegisterContextSP DoCreateRegisterContextForFrame(StackFrame *frame) override
HistoryUnwind(Thread &thread, std::vector< lldb::addr_t > pcs, bool stop_id_is_valid)
This base class provides an interface to stack frames.
Definition: StackFrame.h:40