ROSE  0.11.51.0
DisassemblerNull.h
1 #ifndef ROSE_BinaryAnalysis_Disassembler_Null_H
2 #define ROSE_BinaryAnalysis_Disassembler_Null_H
3 #include <featureTests.h>
4 #ifdef ROSE_ENABLE_BINARY_ANALYSIS
5 
6 #include <Rose/BinaryAnalysis/Disassembler.h>
7 #include <boost/serialization/access.hpp>
8 #include <boost/serialization/base_object.hpp>
9 
10 namespace Rose {
11 namespace BinaryAnalysis {
12 
18 
19 #ifdef ROSE_HAVE_BOOST_SERIALIZATION_LIB
20 private:
21  friend class boost::serialization::access;
22 
23  template<class S>
24  void serialize(S &s, const unsigned /*version*/) {
25  s & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Disassembler);
26  }
27 #endif
28 
29 public:
31  virtual ~DisassemblerNull();
32  virtual Disassembler* clone() const ROSE_OVERRIDE;
33  virtual bool canDisassemble(SgAsmGenericHeader*) const ROSE_OVERRIDE;
34  virtual Unparser::BasePtr unparser() const ROSE_OVERRIDE;
35  virtual SgAsmInstruction* disassembleOne(const MemoryMap::Ptr&, rose_addr_t va, AddressSet *successors = NULL) ROSE_OVERRIDE;
36  virtual SgAsmInstruction* makeUnknownInstruction(const Exception&) ROSE_OVERRIDE;
37 };
38 
39 } // namespace
40 } // namespace
41 
42 #endif
43 #endif
Base class for machine instructions.
virtual Unparser::BasePtr unparser() const ROSE_OVERRIDE
Unparser.
virtual Disassembler * clone() const ROSE_OVERRIDE
Creates a new copy of a disassembler.
Main namespace for the ROSE library.
Base class for container file headers.
virtual bool canDisassemble(SgAsmGenericHeader *) const ROSE_OVERRIDE
Predicate determining the suitability of a disassembler for a specific file header.
virtual SgAsmInstruction * makeUnknownInstruction(const Exception &) ROSE_OVERRIDE
Makes an unknown instruction from an exception.
virtual SgAsmInstruction * disassembleOne(const MemoryMap::Ptr &, rose_addr_t va, AddressSet *successors=NULL) ROSE_OVERRIDE
This is the lowest level disassembly function and is implemented in the architecture-specific subclas...
Exception thrown by the disassemblers.
Definition: Disassembler.h:53
Virtual base class for instruction disassemblers.
Definition: Disassembler.h:50