mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
* dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
attribute.
This commit is contained in:
@@ -8664,6 +8664,15 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
|
||||
{
|
||||
dwarf2_const_value (attr, sym, cu);
|
||||
}
|
||||
attr = dwarf2_attr (die, DW_AT_variable_parameter, cu);
|
||||
if (attr && DW_UNSND (attr))
|
||||
{
|
||||
struct type *ref_type;
|
||||
|
||||
ref_type = lookup_reference_type (SYMBOL_TYPE (sym));
|
||||
SYMBOL_TYPE (sym) = ref_type;
|
||||
}
|
||||
|
||||
add_symbol_to_list (sym, cu->list_in_scope);
|
||||
break;
|
||||
case DW_TAG_unspecified_parameters:
|
||||
|
||||
Reference in New Issue
Block a user