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>
Showing
- monitor/Makefile.objs 1 addition, 1 deletionmonitor/Makefile.objs
- monitor/hmp.c 1417 additions, 0 deletionsmonitor/hmp.c
- monitor/misc.c 14 additions, 1350 deletionsmonitor/misc.c
- monitor/monitor-internal.h 8 additions, 0 deletionsmonitor/monitor-internal.h
- monitor/trace-events 3 additions, 1 deletionmonitor/trace-events
monitor/hmp.c
0 → 100644
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment