Path: blob/main/contrib/llvm-project/lldb/source/Plugins/UnwindAssembly/x86/UnwindAssembly-x86.h
39653 views
//===-- UnwindAssembly-x86.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_UNWINDASSEMBLY_X86_UNWINDASSEMBLY_X86_H9#define LLDB_SOURCE_PLUGINS_UNWINDASSEMBLY_X86_UNWINDASSEMBLY_X86_H1011#include "x86AssemblyInspectionEngine.h"1213#include "lldb/Target/UnwindAssembly.h"14#include "lldb/lldb-private.h"1516class UnwindAssembly_x86 : public lldb_private::UnwindAssembly {17public:18~UnwindAssembly_x86() override;1920bool GetNonCallSiteUnwindPlanFromAssembly(21lldb_private::AddressRange &func, lldb_private::Thread &thread,22lldb_private::UnwindPlan &unwind_plan) override;2324bool25AugmentUnwindPlanFromCallSite(lldb_private::AddressRange &func,26lldb_private::Thread &thread,27lldb_private::UnwindPlan &unwind_plan) override;2829bool GetFastUnwindPlan(lldb_private::AddressRange &func,30lldb_private::Thread &thread,31lldb_private::UnwindPlan &unwind_plan) override;3233// thread may be NULL in which case we only use the Target (e.g. if this is34// called pre-process-launch).35bool36FirstNonPrologueInsn(lldb_private::AddressRange &func,37const lldb_private::ExecutionContext &exe_ctx,38lldb_private::Address &first_non_prologue_insn) override;3940static lldb_private::UnwindAssembly *41CreateInstance(const lldb_private::ArchSpec &arch);4243// PluginInterface protocol44static void Initialize();4546static void Terminate();4748static llvm::StringRef GetPluginNameStatic() { return "x86"; }4950static llvm::StringRef GetPluginDescriptionStatic();5152llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }5354private:55UnwindAssembly_x86(const lldb_private::ArchSpec &arch);5657lldb_private::ArchSpec m_arch;5859lldb_private::x86AssemblyInspectionEngine *m_assembly_inspection_engine;60};6162#endif // LLDB_SOURCE_PLUGINS_UNWINDASSEMBLY_X86_UNWINDASSEMBLY_X86_H636465