projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: use a range based for loop when iterating over an array
[binutils-gdb.git]
/
gdb
/
gnu-v3-abi.c
diff --git
a/gdb/gnu-v3-abi.c
b/gdb/gnu-v3-abi.c
index 93113710137de36febca52d1944d78a2f08a9b51..0cbb8d0d3a63f1efa03cf9359684a8070b9d5475 100644
(file)
--- 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 <jimb@redhat.com>
/* Abstraction of GNU v3 abi.
Contributed by Jim Blandy <jimb@redhat.com>
- Copyright (C) 2001-202
1
Free Software Foundation, Inc.
+ Copyright (C) 2001-202
2
Free Software Foundation, Inc.
This file is part of GDB.
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);
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);
}
/ 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. */
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 ());
{
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);
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
= (struct type *) gdbarch_data (gdbarch, std_type_info_gdbarch_data);
else
- typeinfo_type =
SYMBOL_TYPE (typeinfo
);
+ typeinfo_type =
typeinfo->type (
);
return typeinfo_type;
}
return typeinfo_type;
}