Package utils :: Module crash_binning :: Class crash_binning
[show private | hide private]
[frames | no frames]

Class crash_binning



To Do: Add persistant data support (disk / MySQL)

Method Summary
  __init__(self)
  crash_synopsis(self)
For the last recorded crash, generate and return a report containing the disassemly around the violating address, the ID of the offending thread, the call stack and the SEH unwind.
  record_crash(self, pydbg, extra)
Given a PyDbg instantiation that at the current time is assumed to have "crashed" (access violation for example) record various details such as the disassemly around the violating address, the ID of the offending thread, the call stack and the SEH unwind.

Class Variable Summary
dict bins = {}
NoneType last_crash = None                                                                  
NoneType pydbg = None                                                                  

Method Details

crash_synopsis(self)

For the last recorded crash, generate and return a report containing the disassemly around the violating address, the ID of the offending thread, the call stack and the SEH unwind.

record_crash(self, pydbg, extra=None)

Given a PyDbg instantiation that at the current time is assumed to have "crashed" (access violation for example) record various details such as the disassemly around the violating address, the ID of the offending thread, the call stack and the SEH unwind. Store the recorded data in an internal dictionary, binning them by the exception address.
Parameters:
pydbg - Instance of pydbg
           (type=pydbg)
extra - (Optional, Def=None) Whatever extra data you want to store with this bin
           (type=Mixed)

Class Variable Details

bins

Type:
dict
Value:
{}                                                                     

last_crash

Type:
NoneType
Value:
None                                                                  

pydbg

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Fri Jun 16 17:16:26 2006 http://epydoc.sf.net