run-gdb-user: killed it, all that was needed was to pass --userland

Fixes part of https://github.com/cirosantilli/linux-kernel-module-cheat/issues/63
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-02 00:00:03 +00:00
parent 402d1343df
commit 7fda133215
4 changed files with 20 additions and 58 deletions

View File

@@ -149,13 +149,15 @@ the script is a .py file next to the source code.
break_at = ['-ex', 'break {}'.format(self.env['break_at']), LF]
else:
break_at = []
linux_full_system = (self.env['baremetal'] is None and self.env['userland'] is None)
if self.env['userland']:
image = self.env['image']
linux_full_system = False
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] +
before