miasm
Reverse engineering framework
miasm.core.asmblock.AsmBlock Class Reference
Inheritance diagram for miasm.core.asmblock.AsmBlock:
Collaboration diagram for miasm.core.asmblock.AsmBlock:

Public Member Functions

def __init__ (self, loc_db, loc_key, alignment=1)
 
def to_string (self)
 
def __str__ (self)
 
def addline (self, l)
 
def addto (self, c)
 
def split (self, offset)
 
def get_range (self)
 
def get_offsets (self)
 
def add_cst (self, loc_key, constraint_type)
 
def get_flow_instr (self)
 
def get_subcall_instr (self)
 
def get_next (self)
 
def fix_constraints (self)
 

Public Attributes

 bto
 
 lines
 
 loc_db
 
 alignment
 

Properties

 loc_key = property(lambda self:self._loc_key)
 

Constructor & Destructor Documentation

◆ __init__()

def miasm.core.asmblock.AsmBlock.__init__ (   self,
  loc_db,
  loc_key,
  alignment = 1 
)

Member Function Documentation

◆ __str__()

def miasm.core.asmblock.AsmBlock.__str__ (   self)

Reimplemented in miasm.core.asmblock.AsmBlockBad.

Here is the call graph for this function:

◆ add_cst()

def miasm.core.asmblock.AsmBlock.add_cst (   self,
  loc_key,
  constraint_type 
)
Add constraint between current block and block at @loc_key
@loc_key: LocKey instance of constraint target
@constraint_type: AsmConstraint c_to/c_next
Here is the call graph for this function:

◆ addline()

def miasm.core.asmblock.AsmBlock.addline (   self,
  l 
)

◆ addto()

def miasm.core.asmblock.AsmBlock.addto (   self,
  c 
)
Here is the call graph for this function:

◆ fix_constraints()

def miasm.core.asmblock.AsmBlock.fix_constraints (   self)
Fix next block constraints
Here is the call graph for this function:

◆ get_flow_instr()

def miasm.core.asmblock.AsmBlock.get_flow_instr (   self)
Here is the caller graph for this function:

◆ get_next()

def miasm.core.asmblock.AsmBlock.get_next (   self)
Here is the call graph for this function:

◆ get_offsets()

def miasm.core.asmblock.AsmBlock.get_offsets (   self)

◆ get_range()

def miasm.core.asmblock.AsmBlock.get_range (   self)
Returns the offset hull of an AsmBlock

◆ get_subcall_instr()

def miasm.core.asmblock.AsmBlock.get_subcall_instr (   self)

◆ split()

def miasm.core.asmblock.AsmBlock.split (   self,
  offset 
)
Here is the call graph for this function:

◆ to_string()

def miasm.core.asmblock.AsmBlock.to_string (   self)
Here is the caller graph for this function:

Member Data Documentation

◆ alignment

miasm.core.asmblock.AsmBlock.alignment

◆ bto

miasm.core.asmblock.AsmBlock.bto

◆ lines

miasm.core.asmblock.AsmBlock.lines

◆ loc_db

miasm.core.asmblock.AsmBlock.loc_db

Property Documentation

◆ loc_key

miasm.core.asmblock.AsmBlock.loc_key = property(lambda self:self._loc_key)
static

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