]> git.proxmox.com Git - mirror_qemu.git/commit - monitor/trace-events
monitor: Split out monitor/hmp.c
authorKevin Wolf <kwolf@redhat.com>
Thu, 13 Jun 2019 15:34:01 +0000 (17:34 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 18 Jun 2019 06:13:13 +0000 (08:13 +0200)
commited7bda5d07b655a4056fc579d06150f95dbe8738
tree945d53b7766304ac607464454f6ac70798358f4f
parent7e3c0deab1b76f37ac0b3199324db976a6cd1b2c
monitor: Split out monitor/hmp.c

Move HMP infrastructure from monitor/misc.c to monitor/hmp.c. This is
code that can be shared for all targets, so compile it only once.

The amount of function and particularly extern variables in
monitor_int.h is probably a bit larger than it needs to be, but this way
no non-trivial code modifications are needed. The interfaces between HMP
and the monitor core can be cleaned up later.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20190613153405.24769-12-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Comment reformatted to make checkpatch.pl happy, #include <dirent.h>
moved to fix Windows build, superfluous #include dropped]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
monitor/Makefile.objs
monitor/hmp.c [new file with mode: 0644]
monitor/misc.c
monitor/monitor-internal.h
monitor/trace-events