Package winappdbg :: Module crash :: Class CrashTable
[hide private]
[frames] | no frames]

Class CrashTable

source code


Old crash dump persistencer using a SQLite database.


Warning: Superceded by CrashDictionary since WinAppDbg 1.5. New applications should not use this class.

Instance Methods [hide private]
 
__init__(self, location=None, allowRepeatedKeys=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
bool
__bool__(self)
Returns: False if the container is empty. (Inherited from winappdbg.crash.CrashDictionary)
source code
bool
__contains__(self, crash)
Returns: True if the Crash object is in the container. (Inherited from winappdbg.crash.CrashDictionary)
source code
iterator
__iter__(self)
Returns: Iterator of the contained Crash objects. (Inherited from winappdbg.crash.CrashDictionary)
source code
int
__len__(self)
Returns: Count of Crash elements in the container. (Inherited from winappdbg.crash.CrashDictionary)
source code
 
add(self, crash)
Adds a new crash to the container. (Inherited from winappdbg.crash.CrashDictionary)
source code
Crash object.
get(self, key)
Retrieves a crash from the container. (Inherited from winappdbg.crash.CrashDictionary)
source code
bool
has_key(self, key)
Returns: True if a matching Crash object is in the container. (Inherited from winappdbg.crash.CrashDictionary)
source code
iterator
iterkeys(self)
Returns: Iterator of the contained Crash heuristic signatures. (Inherited from winappdbg.crash.CrashDictionary)
source code
iterator
itervalues(self)
Returns: Iterator of the contained Crash objects. (Inherited from winappdbg.crash.CrashDictionary)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, location=None, allowRepeatedKeys=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • location (str) - (Optional) Location of the crash database. If the location is a filename, it's an SQLite database file.

    If no location is specified, the container is volatile. Volatile containers are stored only in memory and destroyed when they go out of scope.

  • allowRepeatedKeys (bool) - If True all Crash objects are stored.

    If False any Crash object with the same signature as a previously existing object will be ignored.

Overrides: object.__init__