| // Copyright 2021 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #ifndef SRC_DEVELOPER_DEBUG_IPC_UNWINDER_SUPPORT_H_ | |
| #define SRC_DEVELOPER_DEBUG_IPC_UNWINDER_SUPPORT_H_ | |
| #include "src/developer/debug/ipc/records.h" | |
| #include "src/developer/debug/shared/arch.h" | |
| #include "src/lib/unwinder/frame.h" | |
| namespace unwinder { | |
| class Registers; | |
| } // namespace unwinder | |
| namespace debug_ipc { | |
| unwinder::Registers ConvertRegisters(debug::Arch arch, | |
| const std::vector<debug::RegisterValue>& regs); | |
| std::vector<debug_ipc::StackFrame> ConvertFrames(const std::vector<unwinder::Frame>& frames); | |
| unwinder::Frame::Trust ConvertTrust(debug_ipc::StackFrame::Trust trust); | |
| debug_ipc::StackFrame::Trust ConvertTrust(unwinder::Frame::Trust trust); | |
| } // namespace debug_ipc | |
| #endif // SRC_DEVELOPER_DEBUG_IPC_UNWINDER_SUPPORT_H_ |