Ignore variables which type couldn't be read from DWARF

* src/abg-dwarf-reader.cc (build_var_decl): Drop the var on the
	floor if its type couldn't be built.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-08-19 15:13:14 +02:00
parent d08e5181f2
commit edb50beeed

View File

@ -5502,6 +5502,9 @@ build_var_decl(read_context& ctxt,
assert(type);
}
if (!type)
return result;
string name, linkage_name;
location loc;
die_loc_and_name(ctxt, die, loc, name, linkage_name);