diff options
Diffstat (limited to 'include/lldb/API/SBInstruction.h')
-rw-r--r-- | include/lldb/API/SBInstruction.h | 89 |
1 files changed, 36 insertions, 53 deletions
diff --git a/include/lldb/API/SBInstruction.h b/include/lldb/API/SBInstruction.h index cb0b2a32a829..0fc12eb61cba 100644 --- a/include/lldb/API/SBInstruction.h +++ b/include/lldb/API/SBInstruction.h @@ -10,93 +10,76 @@ #ifndef LLDB_SBInstruction_h_ #define LLDB_SBInstruction_h_ -#include "lldb/API/SBDefines.h" #include "lldb/API/SBData.h" +#include "lldb/API/SBDefines.h" #include <stdio.h> -// There's a lot to be fixed here, but need to wait for underlying insn implementation +// There's a lot to be fixed here, but need to wait for underlying insn +// implementation // to be revised & settle down first. class InstructionImpl; namespace lldb { -class LLDB_API SBInstruction -{ +class LLDB_API SBInstruction { public: + SBInstruction(); + + SBInstruction(const SBInstruction &rhs); + + const SBInstruction &operator=(const SBInstruction &rhs); - SBInstruction (); + ~SBInstruction(); - SBInstruction (const SBInstruction &rhs); - - const SBInstruction & - operator = (const SBInstruction &rhs); + bool IsValid(); - ~SBInstruction (); + SBAddress GetAddress(); - bool - IsValid(); + lldb::AddressClass GetAddressClass(); - SBAddress - GetAddress(); - - lldb::AddressClass - GetAddressClass (); - - const char * - GetMnemonic (lldb::SBTarget target); + const char *GetMnemonic(lldb::SBTarget target); - const char * - GetOperands (lldb::SBTarget target); - - const char * - GetComment (lldb::SBTarget target); + const char *GetOperands(lldb::SBTarget target); - lldb::SBData - GetData (lldb::SBTarget target); + const char *GetComment(lldb::SBTarget target); - size_t - GetByteSize (); + lldb::SBData GetData(lldb::SBTarget target); - bool - DoesBranch (); + size_t GetByteSize(); - bool - HasDelaySlot (); + bool DoesBranch(); - void - Print (FILE *out); + bool HasDelaySlot(); - bool - GetDescription (lldb::SBStream &description); + void Print(FILE *out); - bool - EmulateWithFrame (lldb::SBFrame &frame, uint32_t evaluate_options); + bool GetDescription(lldb::SBStream &description); - bool - DumpEmulation (const char * triple); // triple is to specify the architecture, e.g. 'armv6' or 'armv7-apple-ios' - - bool - TestEmulation (lldb::SBStream &output_stream, const char *test_file); + bool EmulateWithFrame(lldb::SBFrame &frame, uint32_t evaluate_options); + + bool DumpEmulation(const char *triple); // triple is to specify the + // architecture, e.g. 'armv6' or + // 'armv7-apple-ios' + + bool TestEmulation(lldb::SBStream &output_stream, const char *test_file); protected: - friend class SBInstructionList; + friend class SBInstructionList; - SBInstruction(const lldb::DisassemblerSP &disasm_sp, const lldb::InstructionSP &inst_sp); + SBInstruction(const lldb::DisassemblerSP &disasm_sp, + const lldb::InstructionSP &inst_sp); - void - SetOpaque(const lldb::DisassemblerSP &disasm_sp, const lldb::InstructionSP& inst_sp); + void SetOpaque(const lldb::DisassemblerSP &disasm_sp, + const lldb::InstructionSP &inst_sp); - lldb::InstructionSP - GetOpaque(); + lldb::InstructionSP GetOpaque(); private: - - std::shared_ptr<InstructionImpl> m_opaque_sp; + std::shared_ptr<InstructionImpl> m_opaque_sp; }; - } // namespace lldb #endif // LLDB_SBInstruction_h_ |