MCPcopy Create free account
hub / github.com/qilingframework/qiling / unalias

Method unalias

qiling/debugger/qdb/arch/arch.py:62–72  ·  view source on GitHub ↗

Get original register name for the specified alias. Args: name: aliaes register name Returns: original name of aliased register, or same name if not an alias

(self, name: str)

Source from the content-addressed store, hash-verified

60 return {self._swaps.get(k, k): v for k, v in mapping.items()}
61
62 def unalias(self, name: str) -> str:
63 """Get original register name for the specified alias.
64
65 Args:
66 name: aliaes register name
67
68 Returns: original name of aliased register, or same name if not an alias
69 """
70
71 # perform a reversed lookup in swaps to find the original name for given alias
72 return next((org for org, alt in self._swaps.items() if name == alt), name)
73
74 def read_insn(self, address: int) -> Optional[bytearray]:
75 """Read a single instruction from given address.

Callers 4

__sub_regMethod · 0.80
handle_setMethod · 0.80
__read_regMethod · 0.80
__read_regMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected