From 325bef81bbd543aca1805e54a621e0fed637a3a1 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, 5 Feb 2019 00:00:00 +0000 Subject: [PATCH] run: --debug-vm-args: imply --debug-vm --- run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run b/run index cbd2030..f20fd89 100755 --- a/run +++ b/run @@ -44,7 +44,7 @@ Ctrl +C kills the QEMU simulator instead of being passed to the guest. ) self.add_argument( '--debug-vm-args', default='', - help='Pass arguments to GDB.' + help='Pass arguments to GDB. Implies --debug-vm.' ) self.add_argument( '--dtb', @@ -226,7 +226,7 @@ Run QEMU with VNC instead of the default SDL. Connect to it with: extra_qemu_args = [] if self.env['tmux_args'] is not None: self.env['tmux'] = True - if self.env['debug_vm']: + if self.env['debug_vm'] or self.env['debug_vm_args']: debug_vm = ['gdb', LF, '-q', LF] + self.sh.shlex_split(self.env['debug_vm_args']) + ['--args', LF] else: debug_vm = []