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

Method __sub_reg

qiling/debugger/qdb/helper.py:82–85  ·  view source on GitHub ↗
(m: Match[str])

Source from the content-addressed store, hash-verified

80
81 def sub_reg_values(self, expr: str) -> str:
82 def __sub_reg(m: Match[str]) -> str:
83 reg = m.group(1).lower()
84
85 return f'{self.read_reg(self.unalias(reg)):#x}'
86
87 # replace reg names with their actual values
88 return re.sub(r'\$(\w+)', __sub_reg, expr)

Callers

nothing calls this directly

Calls 2

unaliasMethod · 0.80
read_regMethod · 0.45

Tested by

no test coverage detected