dwarfcore.utils module

dwarfcore.utils.addr_to_map_and_offset(addr: int, mem: manticore.native.memory.Memory) Optional[Tuple[str, int]]

Translates a virtual address into a tuple (mapping, offset)

Parameters
  • addr – the virtual address to translate

  • mem – the current manticore memory object

  • addr (int) –

  • mem (manticore.native.memory.Memory) –

Returns

the (mapping, offset) tuple or None if the address doesn’t

Return type

Optional[Tuple[str, int]]

correspond to a mapping

dwarfcore.utils.pp_map_and_offset(pos: Optional[Tuple[str, int]]) Optional[str]

Pretty print a map name and offset into the map.

Parameters

pos (Optional[Tuple[str, int]]) –

Return type

Optional[str]