]> Git Repo - qemu.git/commit - monitor.c
monitor: Fix crashes when using HMP commands without CPU
authorThomas Huth <[email protected]>
Fri, 13 Jan 2017 12:12:35 +0000 (13:12 +0100)
committerDr. David Alan Gilbert <[email protected]>
Tue, 21 Feb 2017 18:29:01 +0000 (18:29 +0000)
commit854e67fea6a6f181163a5467fc9ba04de8d181bb
tree95528d10774a6b5021083310dee65c7bbe376274
parent5fc00480ab1ce767f1c6c63ae644e960295fed2c
monitor: Fix crashes when using HMP commands without CPU

When running certain HMP commands ("info registers", "info cpustats",
"info tlb", "nmi", "memsave" or dumping virtual memory) with the "none"
machine, QEMU crashes with a segmentation fault. This happens because the
"none" machine does not have any CPUs by default, but these HMP commands
did not check for a valid CPU pointer yet. Add such checks now, so we get
an error message about the missing CPU instead.

Signed-off-by: Thomas Huth <[email protected]>
Message-Id: <1484309555[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Acked-by: David Gibson <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
hmp.c
monitor.c
target/i386/monitor.c
target/ppc/monitor.c
target/sh4/monitor.c
target/sparc/monitor.c
target/xtensa/monitor.c
This page took 0.028796 seconds and 4 git commands to generate.