1 #ifndef ROSE_BinaryAnalysis_DisassemblerJvm_H
2 #define ROSE_BinaryAnalysis_DisassemblerJvm_H
3 #include <featureTests.h>
4 #ifdef ROSE_ENABLE_BINARY_ANALYSIS
6 #include <Rose/BinaryAnalysis/Disassembler/Base.h>
7 #include <boost/serialization/access.hpp>
8 #include <boost/serialization/base_object.hpp>
22 #ifdef ROSE_HAVE_BOOST_SERIALIZATION_LIB
24 friend class boost::serialization::access;
27 void serialize(S &s,
const unsigned ) {
40 virtual Base::Ptr
clone()
const override;
47 size_t append_tableswitch(
const MemoryMap::Ptr &map, rose_addr_t start,
54 rose_addr_t code_offset_;
56 rose_addr_t code_offset() {
return code_offset_;}
57 void code_offset(rose_addr_t offset) {code_offset_ = offset;}
Base class for machine instructions.
virtual SgAsmInstruction * makeUnknownInstruction(const Disassembler::Exception &) override
Makes an unknown instruction from an exception.
Main namespace for the ROSE library.
virtual Base::Ptr clone() const override
Creates a new copy of a disassembler.
Reference-counting intrusive smart pointer.
Sawyer::SharedPointer< DisassemblerJvm > Ptr
Reference counting pointer.
virtual Unparser::BasePtr unparser() const override
Unparser.
virtual bool canDisassemble(SgAsmGenericHeader *) const override
Predicate determining the suitability of a disassembler for a specific file header.
List of operands for an instruction.
static Ptr instance()
Allocating constructor.
virtual SgAsmInstruction * disassembleOne(const MemoryMap::Ptr &, rose_addr_t va, AddressSet *successors=NULL) override
This is the lowest level disassembly function and is implemented in the architecture-specific subclas...
Exception thrown by the disassemblers.
Virtual base class for instruction disassemblers.