projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93d481d
)
gdbtypes.c: Add the case for FIELD_LOC_KIND_DWARF_BLOCK
author
Alexandra Hájková
<ahajkova@redhat.com>
Fri, 2 Jul 2021 13:46:08 +0000
(15:46 +0200)
committer
Alexandra Hájková
<ahajkova@redhat.com>
Mon, 6 Sep 2021 09:07:56 +0000
(11:07 +0200)
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.
gdb/gdbtypes.c
patch
|
blob
|
history
diff --git
a/gdb/gdbtypes.c
b/gdb/gdbtypes.c
index 74ad5d6f7fef9f63da01806cf8ff1e183de4bdeb..8fbc5d3a80bb0030bce63a4b491392416e0d9fd9 100644
(file)
--- 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"),