miasm
Reverse engineering framework
miasm.analysis.debugging.DebugCmd Class Reference
Inheritance diagram for miasm.analysis.debugging.DebugCmd:
Collaboration diagram for miasm.analysis.debugging.DebugCmd:

Public Member Functions

def __init__ (self, dbg)
 
def print_breakpoints (self)
 
def print_watchmems (self)
 
def print_registers (self)
 
def add_breakpoints (self, bp_addr)
 
def update_display_mode (self)
 
def print_warning (self, s)
 
def onecmd (self, line)
 
def can_exit (self)
 
def do_display (self, arg)
 
def help_display (self)
 
def do_watchmem (self, arg)
 
def help_watchmem (self)
 
def do_info (self, arg)
 
def help_info (self)
 
def do_breakpoint (self, arg)
 
def help_breakpoint (self)
 
def do_step (self, arg)
 
def help_step (self)
 
def do_dump (self, arg)
 
def help_dump (self)
 
def do_run (self, _)
 
def help_run (self)
 
def do_exit (self, _)
 
def do_exec (self, line)
 
def help_exec (self)
 
def help_exit (self)
 
def help_help (self)
 
def postloop (self)
 

Public Attributes

 dbg
 
 display_mode
 

Static Public Attributes

string color_g = '\033[92m'
 
string color_e = '\033[0m'
 
string color_b = '\033[94m'
 
string color_r = '\033[91m'
 
string intro = color_g + "=== Miasm2 Debugging shell ===\nIf you need help, "
 
string prompt = color_b + "$> " + color_e
 
dictionary display_mode
 
def do_EOF = do_exit
 
def help_EOF = help_exit
 

Constructor & Destructor Documentation

◆ __init__()

def miasm.analysis.debugging.DebugCmd.__init__ (   self,
  dbg 
)

Member Function Documentation

◆ add_breakpoints()

def miasm.analysis.debugging.DebugCmd.add_breakpoints (   self,
  bp_addr 
)
Here is the caller graph for this function:

◆ can_exit()

def miasm.analysis.debugging.DebugCmd.can_exit (   self)

◆ do_breakpoint()

def miasm.analysis.debugging.DebugCmd.do_breakpoint (   self,
  arg 
)
Here is the call graph for this function:

◆ do_display()

def miasm.analysis.debugging.DebugCmd.do_display (   self,
  arg 
)
Here is the call graph for this function:

◆ do_dump()

def miasm.analysis.debugging.DebugCmd.do_dump (   self,
  arg 
)
Here is the call graph for this function:

◆ do_exec()

def miasm.analysis.debugging.DebugCmd.do_exec (   self,
  line 
)

◆ do_exit()

def miasm.analysis.debugging.DebugCmd.do_exit (   self,
  _ 
)

◆ do_info()

def miasm.analysis.debugging.DebugCmd.do_info (   self,
  arg 
)
Here is the call graph for this function:

◆ do_run()

def miasm.analysis.debugging.DebugCmd.do_run (   self,
  _ 
)

◆ do_step()

def miasm.analysis.debugging.DebugCmd.do_step (   self,
  arg 
)

◆ do_watchmem()

def miasm.analysis.debugging.DebugCmd.do_watchmem (   self,
  arg 
)
Here is the call graph for this function:

◆ help_breakpoint()

def miasm.analysis.debugging.DebugCmd.help_breakpoint (   self)
Here is the caller graph for this function:

◆ help_display()

def miasm.analysis.debugging.DebugCmd.help_display (   self)
Here is the caller graph for this function:

◆ help_dump()

def miasm.analysis.debugging.DebugCmd.help_dump (   self)
Here is the caller graph for this function:

◆ help_exec()

def miasm.analysis.debugging.DebugCmd.help_exec (   self)

◆ help_exit()

def miasm.analysis.debugging.DebugCmd.help_exit (   self)

◆ help_help()

def miasm.analysis.debugging.DebugCmd.help_help (   self)

◆ help_info()

def miasm.analysis.debugging.DebugCmd.help_info (   self)

◆ help_run()

def miasm.analysis.debugging.DebugCmd.help_run (   self)

◆ help_step()

def miasm.analysis.debugging.DebugCmd.help_step (   self)

◆ help_watchmem()

def miasm.analysis.debugging.DebugCmd.help_watchmem (   self)
Here is the caller graph for this function:

◆ onecmd()

def miasm.analysis.debugging.DebugCmd.onecmd (   self,
  line 
)

◆ postloop()

def miasm.analysis.debugging.DebugCmd.postloop (   self)

◆ print_breakpoints()

def miasm.analysis.debugging.DebugCmd.print_breakpoints (   self)
Here is the caller graph for this function:

◆ print_registers()

def miasm.analysis.debugging.DebugCmd.print_registers (   self)
Here is the caller graph for this function:

◆ print_warning()

def miasm.analysis.debugging.DebugCmd.print_warning (   self,
  s 
)
Here is the caller graph for this function:

◆ print_watchmems()

def miasm.analysis.debugging.DebugCmd.print_watchmems (   self)
Here is the caller graph for this function:

◆ update_display_mode()

def miasm.analysis.debugging.DebugCmd.update_display_mode (   self)
Here is the caller graph for this function:

Member Data Documentation

◆ color_b

string miasm.analysis.debugging.DebugCmd.color_b = '\033[94m'
static

◆ color_e

string miasm.analysis.debugging.DebugCmd.color_e = '\033[0m'
static

◆ color_g

string miasm.analysis.debugging.DebugCmd.color_g = '\033[92m'
static

◆ color_r

string miasm.analysis.debugging.DebugCmd.color_r = '\033[91m'
static

◆ dbg

miasm.analysis.debugging.DebugCmd.dbg

◆ display_mode [1/2]

dictionary miasm.analysis.debugging.DebugCmd.display_mode
static
Initial value:
= {
"mn": None,
"regs": None,
"newbloc": None
}

◆ display_mode [2/2]

miasm.analysis.debugging.DebugCmd.display_mode

◆ do_EOF

def miasm.analysis.debugging.DebugCmd.do_EOF = do_exit
static

◆ help_EOF

def miasm.analysis.debugging.DebugCmd.help_EOF = help_exit
static

◆ intro

string miasm.analysis.debugging.DebugCmd.intro = color_g + "=== Miasm2 Debugging shell ===\nIf you need help, "
static

◆ prompt

string miasm.analysis.debugging.DebugCmd.prompt = color_b + "$> " + color_e
static

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