run-gdb: make dry run dry

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent de90cd9c97
commit d3a839ea4a

13
run-gdb
View File

@@ -196,12 +196,13 @@ See: https://github.com/cirosantilli/linux-kernel-module-cheat#gdb-builtin-cpu-s
cmd.extend(after)
if self.env['test']:
self.sh.print_cmd(cmd)
GdbTestcase(
self.env['source_path'],
test_script_path,
self.sh.strip_newlines(cmd),
verbose=self.env['verbose'],
)
if not self.env['dry_run']:
GdbTestcase(
self.env['source_path'],
test_script_path,
self.sh.strip_newlines(cmd),
verbose=self.env['verbose'],
)
else:
# I would rather have cwd be out_rootfs_overlay_dir,
# but then lx-symbols cannot fine the vmlinux and fails with: