unicorn/qemu/qapi
Eric Blake a2fc66a005
qapi: Tighten qmp_input_end_list()
The only way that qmp_input_pop() will set errp is if a dictionary
was the most recent thing pushed. Since we don't have any
push(struct)/pop(list) or push(list)/pop(struct) mismatches (such
a mismatch is a programming bug), we therefore cannot set errp
inside qmp_input_end_list(). Make this obvious by
using &error_abort. A later patch will then remove the errp
parameter of qmp_input_pop(), but that will first require the
larger task of splitting visit_end_struct().

Backports commit bdd8e6b5d8a9def83d491a3f41c10424fc366258 from qemu
2018-02-19 23:44:45 -05:00
..
common.json qapi: Add alias for ErrorClass 2018-02-19 20:38:51 -05:00
Makefile.objs remove glib dependency by provide compatible replacements 2016-12-18 14:56:58 -08:00
qapi-dealloc-visitor.c qapi: Drop unused 'kind' for struct/enum visit 2018-02-19 23:43:54 -05:00
qapi-visit-core.c qapi: Drop unused 'kind' for struct/enum visit 2018-02-19 23:43:54 -05:00
qmp-input-visitor.c qapi: Tighten qmp_input_end_list() 2018-02-19 23:44:45 -05:00
qmp-output-visitor.c qapi: Drop unused 'kind' for struct/enum visit 2018-02-19 23:43:54 -05:00
string-input-visitor.c qapi: Swap 'name' in visit_* callbacks to match public API 2018-02-19 23:36:52 -05:00