disas works with the linux kernel, it's beautiful

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-06-25 07:00:06 +00:00
parent e658498578
commit 49117d3c1c
4 changed files with 42 additions and 23 deletions

4
disas
View File

@@ -18,7 +18,7 @@ Disassemble one function of the given executable.
https://cirosantilli.com/linux-kernel-module-cheat#run-toolchain
''',
)
self.add_argument('function', help='Which function to disassemble.')
self.add_argument('function', default='main', help='Which function to disassemble.')
def timed_main(self):
lkmc.import_path.import_path_main('run-toolchain')(
@@ -28,7 +28,7 @@ https://cirosantilli.com/linux-kernel-module-cheat#run-toolchain
'-batch',
'-ex',
'disas/rs {}'.format(self.env['function']),
self.env['image'],
self.env['image_elf'],
],
quiet=True,
**self.get_common_args()