SBInstructionList.h revision ef1f690aa23e81a14654d4a6fe9df7810f4eda06
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
17namespace lldb {
18
19class SBInstructionList
20{
21public:
22
23    SBInstructionList ();
24
25    SBInstructionList (const SBInstructionList &rhs);
26
27#ifndef SWIG
28    const SBInstructionList &
29    operator = (const SBInstructionList &rhs);
30#endif
31
32    ~SBInstructionList ();
33
34    bool
35    IsValid () const;
36
37    size_t
38    GetSize ();
39
40    lldb::SBInstruction
41    GetInstructionAtIndex (uint32_t idx);
42
43    void
44    Clear ();
45
46    void
47    AppendInstruction (lldb::SBInstruction inst);
48
49    void
50    Print (FILE *out);
51
52    bool
53    GetDescription (lldb::SBStream &description);
54
55    bool
56    DumpEmulationForAllInstructions (const char *triple);
57
58protected:
59    friend class SBFunction;
60    friend class SBSymbol;
61    friend class SBTarget;
62
63    void
64    SetDisassembler (const lldb::DisassemblerSP &opaque_sp);
65
66private:
67    lldb::DisassemblerSP m_opaque_sp;
68};
69
70
71} // namespace lldb
72
73#endif // LLDB_SBInstructionList_h_
74