mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
test-gdb: move to pure python calls
This commit is contained in:
5
run-gdb
5
run-gdb
@@ -23,8 +23,6 @@ class GdbTestcase:
|
||||
'''
|
||||
self.prompt = '\(gdb\) '
|
||||
self.source_path = source_path
|
||||
self.print_cmd(cmd)
|
||||
cmd = self.strip_newlines(cmd)
|
||||
import pexpect
|
||||
self.child = pexpect.spawn(
|
||||
cmd[0],
|
||||
@@ -198,10 +196,11 @@ See: https://github.com/cirosantilli/linux-kernel-module-cheat#gdb-builtin-cpu-s
|
||||
cmd.extend(['-ex', 'lx-symbols {}'.format(self.env['kernel_modules_build_subdir']), LF])
|
||||
cmd.extend(after)
|
||||
if self.env['test']:
|
||||
self.sh.print_cmd(cmd)
|
||||
GdbTestcase(
|
||||
self.env['source_path'],
|
||||
test_script_path,
|
||||
cmd,
|
||||
self.sh.strip_newlines(cmd),
|
||||
verbose=self.env['verbose'],
|
||||
)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user