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

Method do_set

qiling/debugger/qdb/qdb.py:358–369  ·  view source on GitHub ↗

set register value of current context

(self, args: str)

Source from the content-addressed store, hash-verified

356 qdb_print(QDB_MSG.ERROR, ex)
357
358 def do_set(self, args: str) -> None:
359 """
360 set register value of current context
361 """
362 # set $a = b
363
364 try:
365 reg, value = self.helper.handle_set(args)
366 except (KeyError, ValueError, SyntaxError) as ex:
367 qdb_print(QDB_MSG.ERROR, ex)
368 else:
369 qdb_print(QDB_MSG.INFO, f"{reg} set to {value:#010x}")
370
371 def do_start(self, args: str) -> None:
372 """

Callers

nothing calls this directly

Calls 2

qdb_printFunction · 0.85
handle_setMethod · 0.80

Tested by

no test coverage detected