mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
disas works with the linux kernel, it's beautiful
This commit is contained in:
5
run-gdb
5
run-gdb
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user