1 //===-- SBInstructionList.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_SBInstructionList_h_
11 #define LLDB_SBInstructionList_h_
13 #include "lldb/API/SBDefines.h"
19 class LLDB_API SBInstructionList {
23 SBInstructionList(const SBInstructionList &rhs);
25 const SBInstructionList &operator=(const SBInstructionList &rhs);
33 lldb::SBInstruction GetInstructionAtIndex(uint32_t idx);
35 // ----------------------------------------------------------------------
36 // Returns the number of instructions between the start and end address.
37 // If canSetBreakpoint is true then the count will be the number of
38 // instructions on which a breakpoint can be set.
39 // ----------------------------------------------------------------------
40 size_t GetInstructionsCount(const SBAddress &start,
42 bool canSetBreakpoint = false);
46 void AppendInstruction(lldb::SBInstruction inst);
48 void Print(FILE *out);
50 bool GetDescription(lldb::SBStream &description);
52 bool DumpEmulationForAllInstructions(const char *triple);
55 friend class SBFunction;
56 friend class SBSymbol;
57 friend class SBTarget;
59 void SetDisassembler(const lldb::DisassemblerSP &opaque_sp);
62 lldb::DisassemblerSP m_opaque_sp;
67 #endif // LLDB_SBInstructionList_h_