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

View File

@@ -171,17 +171,14 @@ by default due to --continue if this breakpoint is reached.
else:
break_at = []
if self.env['userland']:
image = self.env['image']
linux_full_system = False
if self.env['gdbserver']:
before.extend([
'-ex', 'set sysroot {}'.format(self.env['buildroot_staging_dir']),
])
elif self.env['baremetal']:
image = self.env['image']
linux_full_system = False
else:
image = self.env['vmlinux']
linux_full_system = True
cmd = (
[self.env['gdb_path'], LF] +
@@ -200,7 +197,7 @@ by default due to --continue if this breakpoint is reached.
port = self.env['gdb_port']
target = 'remote localhost:{}'.format(port)
cmd.extend([
'-ex', 'file {}'.format(image), LF,
'-ex', 'file {}'.format(self.env['image_elf']), LF,
'-ex', 'target {}'.format(target), LF,
])
if not self.env['kgdb']: