diff options
author | Alexandra Hájková <ahajkova@redhat.com> | 2021-07-02 15:46:08 +0200 |
---|---|---|
committer | Alexandra Hájková <ahajkova@redhat.com> | 2021-09-06 11:07:56 +0200 |
commit | 5a20fadc84144c2649f7f7c029f1604f003a3834 (patch) | |
tree | 44f4e57d6cc3e784106c3f811a4ea42a952b653b | |
parent | 93d481d1d87b4720cebd5b62169001dfb497d83c (diff) | |
download | binutils-gdb-5a20fadc84144c2649f7f7c029f1604f003a3834.tar.gz |
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.
-rw-r--r-- | gdb/gdbtypes.c | 4 |
1 files changed, 4 insertions, 0 deletions
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"), |