diff --git a/run-gdb b/run-gdb index 8eef4c4..84dfddc 100755 --- a/run-gdb +++ b/run-gdb @@ -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: