X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fgnu-v3-abi.c;h=0cbb8d0d3a63f1efa03cf9359684a8070b9d5475;hb=dd1ae8eaa369ac5c7df7e55c929b42ac8ac44526;hp=93113710137de36febca52d1944d78a2f08a9b51;hpb=50888e42dcd32b30e1144c0aa6d1c1490da45cd9;p=binutils-gdb.git diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index 93113710137..0cbb8d0d3a6 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -1,7 +1,7 @@ /* Abstraction of GNU v3 abi. Contributed by Jim Blandy - Copyright (C) 2001-2021 Free Software Foundation, Inc. + Copyright (C) 2001-2022 Free Software Foundation, Inc. This file is part of GDB. @@ -195,7 +195,7 @@ vtable_address_point_offset (struct gdbarch *gdbarch) struct type *vtable_type = (struct type *) gdbarch_data (gdbarch, vtable_type_gdbarch_data); - return (TYPE_FIELD_BITPOS (vtable_type, vtable_field_virtual_functions) + return (vtable_type->field (vtable_field_virtual_functions).loc_bitpos () / TARGET_CHAR_BIT); } @@ -464,12 +464,12 @@ gnuv3_baseclass_offset (struct type *type, int index, return TYPE_BASECLASS_BITPOS (type, index) / 8; /* If we have a DWARF expression for the offset, evaluate it. */ - if (TYPE_FIELD_LOC_KIND (type, index) == FIELD_LOC_KIND_DWARF_BLOCK) + if (type->field (index).loc_kind () == FIELD_LOC_KIND_DWARF_BLOCK) { struct dwarf2_property_baton baton; baton.property_type = lookup_pointer_type (type->field (index).type ()); - baton.locexpr = *TYPE_FIELD_DWARF_BLOCK (type, index); + baton.locexpr = *type->field (index).loc_dwarf_block (); struct dynamic_prop prop; prop.set_locexpr (&baton); @@ -1071,7 +1071,7 @@ gnuv3_get_typeid_type (struct gdbarch *gdbarch) typeinfo_type = (struct type *) gdbarch_data (gdbarch, std_type_info_gdbarch_data); else - typeinfo_type = SYMBOL_TYPE (typeinfo); + typeinfo_type = typeinfo->type (); return typeinfo_type; }