1 //===-- SBInstructionList.h -------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SBInstructionList_h_
10 #define LLDB_SBInstructionList_h_
12 #include "lldb/API/SBDefines.h"
18 class LLDB_API SBInstructionList {
22 SBInstructionList(const SBInstructionList &rhs);
24 const SBInstructionList &operator=(const SBInstructionList &rhs);
28 explicit operator bool() const;
34 lldb::SBInstruction GetInstructionAtIndex(uint32_t idx);
36 // Returns the number of instructions between the start and end address. If
37 // canSetBreakpoint is true then the count will be the number of
38 // instructions on which a breakpoint can be set.
39 size_t GetInstructionsCount(const SBAddress &start,
41 bool canSetBreakpoint = false);
45 void AppendInstruction(lldb::SBInstruction inst);
47 void Print(FILE *out);
49 bool GetDescription(lldb::SBStream &description);
51 bool DumpEmulationForAllInstructions(const char *triple);
54 friend class SBFunction;
55 friend class SBSymbol;
56 friend class SBTarget;
58 void SetDisassembler(const lldb::DisassemblerSP &opaque_sp);
61 lldb::DisassemblerSP m_opaque_sp;
66 #endif // LLDB_SBInstructionList_h_