qemu-cr16/system
Peter Maydell 3de6afef49 qtest: Allow and ignore blank lines in input
Currently the code that reads the qtest protocol commands insists
that every input line has a command.  If it receives a line with
nothing but whitespace it will trip an assertion in
qtest_process_command().

This is a little awkward for the case where we are feeding qtest a
set of bug-reproduction commands via standard input or a file,
because it means you need to be careful not to leave a blank line at
the start or the end when cutting and pasting the command sequence
from a bug report.

Change the code to allow and ignore blank lines in the input.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20251106151959.1088095-1-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-11-25 22:41:37 +01:00
..
arch_init.c
async-teardown.c
balloon.c
bootdevice.c
cpu-timers.c cpus: properly kick CPUs out of inner execution loop 2025-09-17 19:00:55 +02:00
cpus.c bql: Fix bql_locked status with condvar APIs 2025-11-03 11:59:32 +01:00
datadir.c
device_tree-stub.c
device_tree.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
dirtylimit.c
dma-helpers.c
exit-with-parent.c Implement -run-with exit-with-parent=on 2025-11-03 10:05:39 +00:00
globals-target.c
globals.c system: drop the -old-param option 2025-09-16 17:31:54 +01:00
ioport.c
main.c
memory-internal.h
memory.c system/physmem: Extract API out of 'system/ram_addr.h' header 2025-10-07 05:03:56 +02:00
memory_ldst.c.inc system/physmem: Drop 'cpu_' prefix in Physical Memory API 2025-10-07 05:03:56 +02:00
memory_mapping.c
meson.build Implement -run-with exit-with-parent=on 2025-11-03 10:05:39 +00:00
physmem.c system/physmem: mark io_mem_unassigned lockless 2025-11-03 16:04:10 -05:00
qdev-monitor.c qdev: add qdev_find_default_bus() 2025-10-29 22:53:41 +04:00
qemu-seccomp.c
qtest.c qtest: Allow and ignore blank lines in input 2025-11-25 22:41:37 +01:00
ram-block-attributes.c ram-block-attributes: Unify the retrieval of the block size 2025-11-03 16:04:10 -05:00
rtc.c
runstate-action.c
runstate-hmp-cmds.c
runstate.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
tpm-hmp-cmds.c
tpm.c tpm: "qemu -tpmdev help" should return success 2025-07-15 10:22:33 +04:00
trace-events ram-block-attributes: Introduce RamBlockAttributes to manage RAMBlock with guest_memfd 2025-06-23 16:03:59 -04:00
trace.h
vl.c Implement -run-with exit-with-parent=on 2025-11-03 10:05:39 +00:00
watchpoint.c