mirror of https://gitee.com/openkylin/qemu.git
util/error: do not free error on error_abort
It would be nice to have Error object not freed away when debugging a coredump. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20190415142519.73060-1-vsementsov@virtuozzo.com> [error_printf_unless_qmp() replaced by error_printf()] Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
4c8b7c8b25
commit
b922c0506a
|
@ -34,7 +34,10 @@ static void error_handle_fatal(Error **errp, Error *err)
|
|||
if (errp == &error_abort) {
|
||||
fprintf(stderr, "Unexpected error in %s() at %s:%d:\n",
|
||||
err->func, err->src, err->line);
|
||||
error_report_err(err);
|
||||
error_report("%s", error_get_pretty(err));
|
||||
if (err->hint) {
|
||||
error_printf("%s", err->hint->str);
|
||||
}
|
||||
abort();
|
||||
}
|
||||
if (errp == &error_fatal) {
|
||||
|
|
Loading…
Reference in New Issue