From: Alexandra Hájková Date: Fri, 2 Jul 2021 13:46:08 +0000 (+0200) Subject: gdbtypes.c: Add the case for FIELD_LOC_KIND_DWARF_BLOCK X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a20fadc84144c2649f7f7c029f1604f003a3834;p=binutils-gdb.git gdbtypes.c: Add the case for FIELD_LOC_KIND_DWARF_BLOCK The case for FIELD_LOC_KIND_DWARF_BLOCK was missing for switch TYPE_FIELD_LOC_KIND. Thas caused an internal-error under some circumstances. Fixes bug 28030. --- diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 74ad5d6f7fe..8fbc5d3a80b 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -5579,6 +5579,10 @@ copy_type_recursive (struct objfile *objfile, xstrdup (TYPE_FIELD_STATIC_PHYSNAME (type, i))); break; + case FIELD_LOC_KIND_DWARF_BLOCK: + SET_FIELD_DWARF_BLOCK (new_type->field (i), + TYPE_FIELD_DWARF_BLOCK (type, i)); + break; default: internal_error (__FILE__, __LINE__, _("Unexpected type field location kind: %d"),