Package winappdbg :: Module system :: Class SymbolContainer
[hide private]
[frames] | no frames]

Class SymbolContainer

source code


Capability to contain symbols. Used by Module.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

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

    Symbols
 
load_symbols(self)
Loads the debugging symbols for a module.
source code
 
unload_symbols(self)
Unloads the debugging symbols for a module.
source code
list of tuple( str, int, int )
get_symbols(self)
Returns the debugging symbols for a module.
source code
iterator of tuple( str, int, int )
iter_symbols(self)
Returns an iterator for the debugging symbols in a module, in no particular order.
source code
int or None
resolve_symbol(self, symbol, bCaseSensitive=False)
Resolves a debugging symbol's address.
source code
 
get_symbol_at_address(self, address) source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

load_symbols(self)

source code 

Loads the debugging symbols for a module. Automatically called by get_symbols.

get_symbols(self)

source code 

Returns the debugging symbols for a module. The symbols are automatically loaded when needed.

Returns: list of tuple( str, int, int )
List of symbols. Each symbol is represented by a tuple that contains:
  • Symbol name
  • Symbol memory address
  • Symbol size in bytes

iter_symbols(self)

source code 

Returns an iterator for the debugging symbols in a module, in no particular order. The symbols are automatically loaded when needed.

Returns: iterator of tuple( str, int, int )
Iterator of symbols. Each symbol is represented by a tuple that contains:
  • Symbol name
  • Symbol memory address
  • Symbol size in bytes

resolve_symbol(self, symbol, bCaseSensitive=False)

source code 

Resolves a debugging symbol's address.

Parameters:
  • symbol (str) - Name of the symbol to resolve.
  • bCaseSensitive (bool) - True for case sensitive matches, False for case insensitive.
Returns: int or None
Memory address of symbol. None if not found.