* dwarf2read.c (dwarf2_get_die_type): Call
get_die_type_at_offset. * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from get_base_type function.
This commit is contained in:
parent
4e51152384
commit
9ff3b74fdb
3 changed files with 10 additions and 15 deletions
|
@ -447,6 +447,8 @@ dwarf_get_base_type (struct dwarf_expr_context *ctx, ULONGEST die, int size)
|
|||
if (ctx->get_base_type)
|
||||
{
|
||||
result = ctx->get_base_type (ctx, die);
|
||||
if (result == NULL)
|
||||
error (_("Could not find type for DW_OP_GNU_const_type"));
|
||||
if (size != 0 && TYPE_LENGTH (result) != size)
|
||||
error (_("DW_OP_GNU_const_type has different sizes for type and data"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue