Skip to content
  • Kevin Wolf's avatar
    ed7bda5d
    monitor: Split out monitor/hmp.c · ed7bda5d
    Kevin Wolf authored
    
    
    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: default avatarKevin Wolf <kwolf@redhat.com>
    Message-Id: <20190613153405.24769-12-kwolf@redhat.com>
    Reviewed-by: default avatarMarkus 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: default avatarMarkus Armbruster <armbru@redhat.com>
    ed7bda5d
    monitor: Split out monitor/hmp.c
    Kevin Wolf authored
    
    
    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: default avatarKevin Wolf <kwolf@redhat.com>
    Message-Id: <20190613153405.24769-12-kwolf@redhat.com>
    Reviewed-by: default avatarMarkus 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: default avatarMarkus Armbruster <armbru@redhat.com>
Loading