From d3a839ea4ac9b4bc4b50e5ebd3fc7070fb815bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 22 Jan 2019 00:00:00 +0000 Subject: [PATCH] run-gdb: make dry run dry --- run-gdb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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: