1 //===-- UnwindMacOSXFrameBackchain.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 lldb_UnwindMacOSXFrameBackchain_h_
11 #define lldb_UnwindMacOSXFrameBackchain_h_
17 // Other libraries and framework includes
20 #include "lldb/lldb-private.h"
21 #include "lldb/Target/Unwind.h"
23 class UnwindMacOSXFrameBackchain : public lldb_private::Unwind
26 UnwindMacOSXFrameBackchain (lldb_private::Thread &thread);
29 ~UnwindMacOSXFrameBackchain()
44 DoGetFrameInfoAtIndex (uint32_t frame_idx,
48 lldb::RegisterContextSP
49 DoCreateRegisterContextForFrame (lldb_private::StackFrame *frame);
51 friend class RegisterContextMacOSXFrameBackchain;
55 lldb::addr_t pc; // Program counter
56 lldb::addr_t fp; // Frame pointer for us with backchain
60 std::vector<Cursor> m_cursors;
63 GetStackFrameData_i386 (const lldb_private::ExecutionContext &exe_ctx);
66 GetStackFrameData_x86_64 (const lldb_private::ExecutionContext &exe_ctx);
68 //------------------------------------------------------------------
69 // For UnwindMacOSXFrameBackchain only
70 //------------------------------------------------------------------
71 DISALLOW_COPY_AND_ASSIGN (UnwindMacOSXFrameBackchain);
74 #endif // lldb_UnwindMacOSXFrameBackchain_h_