ROSE  0.9.9.168
Public Member Functions | Public Attributes | List of all members
Rose::BinaryAnalysis::AsmUnparser::InsnBlockEntry Class Reference

Description

Functor to emit info about the first instruction of a block.

If the instruction is the first instruction of a block, then certain information is printed. The output for all instructions is always the same width so that things line up properly between instructions that are first in a block and those that aren't. This callback is a no-op unless the output is organized by address.

Definition at line 409 of file AsmUnparser.h.

#include <AsmUnparser.h>

Inheritance diagram for Rose::BinaryAnalysis::AsmUnparser::InsnBlockEntry:
Inheritance graph
[legend]
Collaboration diagram for Rose::BinaryAnalysis::AsmUnparser::InsnBlockEntry:
Collaboration graph
[legend]

Public Member Functions

virtual bool operator() (bool enabled, const InsnArgs &args)
 Default callbacks. More...
 
- Public Member Functions inherited from Rose::BinaryAnalysis::AsmUnparser::UnparserCallback
virtual bool operator() (bool enabled, const BasicBlockArgs &)
 Default callbacks. More...
 
virtual bool operator() (bool enabled, const StaticDataArgs &)
 Default callbacks. More...
 
virtual bool operator() (bool enabled, const DataBlockArgs &)
 Default callbacks. More...
 
virtual bool operator() (bool enabled, const FunctionArgs &)
 Default callbacks. More...
 
virtual bool operator() (bool enabled, const InterpretationArgs &)
 Default callbacks. More...
 

Public Attributes

bool show_function
 If true (the default) show entry address of function owning block. More...
 
bool show_reasons
 If true (the default) show block reason bits. More...
 

Member Function Documentation

virtual bool Rose::BinaryAnalysis::AsmUnparser::InsnBlockEntry::operator() ( bool  enabled,
const InsnArgs  
)
virtual

Default callbacks.

The default is to abort, because if these are called it means one of three things:

  1. The arguments are wrong in the subclass and the subclass therefore isn't providing an implementation when it thinks it is.
  2. The wrong type was used for the second argument. Instruction callbacks use InsnArgs, basic block callbacks use BasicBlockArgs, etc.
  3. The functor was added to the wrong callback list. For instance, an instruction functor was accidently added to one of the function callback lists.

Reimplemented from Rose::BinaryAnalysis::AsmUnparser::UnparserCallback.

Member Data Documentation

bool Rose::BinaryAnalysis::AsmUnparser::InsnBlockEntry::show_function

If true (the default) show entry address of function owning block.

Definition at line 411 of file AsmUnparser.h.

bool Rose::BinaryAnalysis::AsmUnparser::InsnBlockEntry::show_reasons

If true (the default) show block reason bits.

Definition at line 412 of file AsmUnparser.h.


The documentation for this class was generated from the following file: