Path: blob/main/contrib/llvm-project/lldb/source/Plugins/Process/Utility/HistoryUnwind.h
39642 views
//===-- HistoryUnwind.h -----------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_HISTORYUNWIND_H9#define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_HISTORYUNWIND_H1011#include <vector>1213#include "lldb/Target/Unwind.h"14#include "lldb/lldb-private.h"1516namespace lldb_private {1718class HistoryUnwind : public lldb_private::Unwind {19public:20HistoryUnwind(Thread &thread, std::vector<lldb::addr_t> pcs,21bool pcs_are_call_addresses = false);2223~HistoryUnwind() override;2425protected:26void DoClear() override;2728lldb::RegisterContextSP29DoCreateRegisterContextForFrame(StackFrame *frame) override;3031bool DoGetFrameInfoAtIndex(uint32_t frame_idx, lldb::addr_t &cfa,32lldb::addr_t &pc,33bool &behaves_like_zeroth_frame) override;34uint32_t DoGetFrameCount() override;3536private:37std::vector<lldb::addr_t> m_pcs;38/// This boolean indicates that the PCs in the non-0 frames are call39/// addresses and not return addresses.40bool m_pcs_are_call_addresses;41};4243} // namespace lldb_private4445#endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_HISTORYUNWIND_H464748