mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* gdbtypes.h (struct cplus_struct_type): Add is_artificial to member function fields. Add accessor macro TYPE_FN_FIELD_ARTIFICIAL. * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods. * c-typeprint.c (c_type_print_base): Skip artificial member functions.
This commit is contained in:
@ -2168,6 +2168,11 @@ dwarf2_add_member_fn (struct field_info *fip, struct die_info *die,
|
||||
}
|
||||
}
|
||||
|
||||
/* Check for artificial methods. */
|
||||
attr = dwarf_attr (die, DW_AT_artificial);
|
||||
if (attr && DW_UNSND (attr) != 0)
|
||||
fnp->is_artificial = 1;
|
||||
|
||||
/* Get index in virtual function table if it is a virtual member function. */
|
||||
attr = dwarf_attr (die, DW_AT_vtable_elem_location);
|
||||
if (attr)
|
||||
|
Reference in New Issue
Block a user