mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Selection with --mode userland (default because has x86_64) or --mode baremetal. This is the first userland tool where this choice is done on the command line, which led to a refactor of supported_archs and is_baremetal and is_userland into a single self.env['mode'].
10 lines
244 B
Python
10 lines
244 B
Python
def test(self):
|
|
self.sendline('tbreak main')
|
|
self.sendline('continue')
|
|
|
|
self.continue_to('rax')
|
|
self.sendline('set $rax = 3')
|
|
self.continue_to('rbx')
|
|
assert self.get_int('$rax') == 3
|
|
assert self.get_int('$rbx') == 2
|