提交 a13ced59 编写于 作者: W Wenchao Xia 提交者: Luiz Capitulino

HMP: move define of mon_cmds

  Because mon_cmds may use info_cmds, so adjust the declare sequence
of them.
Signed-off-by: NWenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
上级 5f3d335f
...@@ -2433,12 +2433,6 @@ int monitor_handle_fd_param(Monitor *mon, const char *fdname) ...@@ -2433,12 +2433,6 @@ int monitor_handle_fd_param(Monitor *mon, const char *fdname)
return fd; return fd;
} }
/* mon_cmds and info_cmds would be sorted at runtime */
static mon_cmd_t mon_cmds[] = {
#include "hmp-commands.h"
{ NULL, NULL, },
};
/* Please update hmp-commands.hx when adding or changing commands */ /* Please update hmp-commands.hx when adding or changing commands */
static mon_cmd_t info_cmds[] = { static mon_cmd_t info_cmds[] = {
{ {
...@@ -2752,6 +2746,12 @@ static mon_cmd_t info_cmds[] = { ...@@ -2752,6 +2746,12 @@ static mon_cmd_t info_cmds[] = {
}, },
}; };
/* mon_cmds and info_cmds would be sorted at runtime */
static mon_cmd_t mon_cmds[] = {
#include "hmp-commands.h"
{ NULL, NULL, },
};
static const mon_cmd_t qmp_cmds[] = { static const mon_cmd_t qmp_cmds[] = {
#include "qmp-commands-old.h" #include "qmp-commands-old.h"
{ /* NULL */ }, { /* NULL */ },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册