Miasm2
 All Classes Namespaces Files Functions Variables Typedefs Properties Macros
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
miasm2.analysis.debugging.DebugBreakpointMemory Class Reference
+ Inheritance diagram for miasm2.analysis.debugging.DebugBreakpointMemory:
+ Collaboration diagram for miasm2.analysis.debugging.DebugBreakpointMemory:

Public Member Functions

def __init__
 
def __str__
 
def get_access_type
 

Public Attributes

 addr
 
 access_type
 
 size
 

Static Public Attributes

dictionary type2str
 

Detailed Description

Definition at line 35 of file debugging.py.

Constructor & Destructor Documentation

def miasm2.analysis.debugging.DebugBreakpointMemory.__init__ (   self,
  addr,
  size,
  access_type 
)

Member Function Documentation

def miasm2.analysis.debugging.DebugBreakpointMemory.__str__ (   self)

Definition at line 47 of file debugging.py.

47 
48  def __str__(self):
49  bp_type = ""
50  for k, v in self.type2str.items():
51  if k & self.access_type != 0:
52  bp_type += v
53  return "Memory BP @0x%08x, Size 0x%08x, Type %s" % (self.addr,
54  self.size,
55  bp_type)

+ Here is the caller graph for this function:

def miasm2.analysis.debugging.DebugBreakpointMemory.get_access_type (   cls,
  read = False,
  write = False 
)

Definition at line 57 of file debugging.py.

57 
58  def get_access_type(cls, read=False, write=False):
59  value = 0
60  for k, v in cls.type2str.items():
61  if v == "R" and read is True:
62  value += k
63  if v == "W" and write is True:
64  value += k
65  return value
66 

Member Data Documentation

miasm2.analysis.debugging.DebugBreakpointMemory.access_type

Definition at line 44 of file debugging.py.

miasm2.analysis.debugging.DebugBreakpointMemory.addr

Definition at line 43 of file debugging.py.

miasm2.analysis.debugging.DebugBreakpointMemory.size

Definition at line 45 of file debugging.py.

dictionary miasm2.analysis.debugging.DebugBreakpointMemory.type2str
static
Initial value:
1 = {csts.BREAKPOINT_READ: "R",
2  csts.BREAKPOINT_WRITE: "W"}

Definition at line 39 of file debugging.py.


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