On 30/11/2015 04:47, Peter Xu wrote: > > I met one problem when trying to add a new public function in dump.h > named "dump_state_get_global" and using it in hmp.c.
Don't do that. :) hmp.c functions should in general use the QMP commands as the base. In your case, hmp_info_dump should call qmp_query_dump. Paolo