LLDB API Documentation

SBInstructionList.h
Go to the documentation of this file.
1 //===-- SBInstructionList.h -------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLDB_SBInstructionList_h_
11 #define LLDB_SBInstructionList_h_
12 
13 #include "lldb/API/SBDefines.h"
14 
15 #include <stdio.h>
16 
17 namespace lldb {
18 
19 class LLDB_API SBInstructionList {
20 public:
22 
24 
25  const SBInstructionList &operator=(const SBInstructionList &rhs);
26 
28 
29  bool IsValid() const;
30 
31  size_t GetSize();
32 
33  lldb::SBInstruction GetInstructionAtIndex(uint32_t idx);
34 
35  void Clear();
36 
37  void AppendInstruction(lldb::SBInstruction inst);
38 
39  void Print(FILE *out);
40 
41  bool GetDescription(lldb::SBStream &description);
42 
43  bool DumpEmulationForAllInstructions(const char *triple);
44 
45 protected:
46  friend class SBFunction;
47  friend class SBSymbol;
48  friend class SBTarget;
49 
50  void SetDisassembler(const lldb::DisassemblerSP &opaque_sp);
51 
52 private:
53  lldb::DisassemblerSP m_opaque_sp;
54 };
55 
56 } // namespace lldb
57 
58 #endif // LLDB_SBInstructionList_h_
class LLDB_API SBInstructionList
Definition: SBDefines.h:57