1 #ifndef ROSE_BinaryAnalysis_Disassembler_Jvm_H
2 #define ROSE_BinaryAnalysis_Disassembler_Jvm_H
3 #include <featureTests.h>
4 #ifdef ROSE_ENABLE_BINARY_ANALYSIS
6 #include <Rose/BinaryAnalysis/Disassembler.h>
7 #include <boost/serialization/access.hpp>
8 #include <boost/serialization/base_object.hpp>
11 namespace BinaryAnalysis {
19 #ifdef ROSE_HAVE_BOOST_SERIALIZATION_LIB
21 friend class boost::serialization::access;
24 void serialize(S &s,
const unsigned ) {
39 size_t append_tableswitch(
const MemoryMap::Ptr &map, rose_addr_t start,
46 rose_addr_t code_offset_;
48 rose_addr_t code_offset() {
return code_offset_;}
49 void code_offset(rose_addr_t offset) {code_offset_ = offset;}
Base class for machine instructions.
Main namespace for the ROSE library.
virtual Disassembler * clone() const override
Creates a new copy of a disassembler.
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.
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...
virtual SgAsmInstruction * makeUnknownInstruction(const Exception &) override
Makes an unknown instruction from an exception.
Exception thrown by the disassemblers.
Virtual base class for instruction disassemblers.