Skip to content

Commit 09a59ca

Browse files
committed
boot-qemu.py: Do not make gdb imply interactive
Keep these two options separate now that QEMU in the foreground runs in a separate method than QEMU in the background. Adjust the one location where we want interactive and gdb to do the same thing. Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent b845151 commit 09a59ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

boot-qemu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def run(self):
284284
] # yapf: disable
285285

286286
# Kernel options
287-
if self.interactive:
287+
if self.interactive or args.gdb:
288288
self.cmdline.append('rdinit=/bin/sh')
289289
if self.gdb:
290290
self.cmdline.append('nokaslr')
@@ -758,7 +758,7 @@ def parse_arguments():
758758
if args.smp:
759759
runner.smp = args.smp
760760

761-
runner.interactive = args.interactive or args.gdb
761+
runner.interactive = args.interactive
762762
runner.timeout = args.timeout
763763

764764
runner.run()

0 commit comments

Comments
 (0)