userland: show stdout again?

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent 022bbe970e
commit 080f4e9d4d
4 changed files with 14 additions and 6 deletions

7
run
View File

@@ -203,13 +203,12 @@ Run QEMU with VNC instead of the default SDL. Connect to it with:
)
def timed_main(self):
show_stdout = True
# Common qemu / gem5 logic.
# nokaslr:
# * https://unix.stackexchange.com/questions/397939/turning-off-kaslr-to-debug-linux-kernel-using-qemu-and-gdb
# * https://stackoverflow.com/questions/44612822/unable-to-debug-kernel-with-qemu-gdb/49840927#49840927
# Turned on by default since v4.12
raise_on_failure = True
show_stdout = True
kernel_cli = 'console_msg_format=syslog nokaslr norandmaps panic=-1 printk.devkmsg=on printk.time=y rw'
if self.env['kernel_cli'] is not None:
kernel_cli += ' {}'.format(self.env['kernel_cli'])
@@ -427,8 +426,6 @@ Run QEMU with VNC instead of the default SDL. Connect to it with:
qemu_user_and_system_options +
debug_args
)
show_stdout = False
raise_on_failure = False
else:
if not os.path.exists(self.env['image']):
raise_image_not_found()
@@ -600,7 +597,7 @@ Run QEMU with VNC instead of the default SDL. Connect to it with:
cmd_file=self.env['run_cmd_file'],
extra_env=extra_env,
out_file=out_file,
raise_on_failure=raise_on_failure,
raise_on_failure=False,
show_stdout=show_stdout,
)
if exit_status == 0: