2007-06-09 Markus Deuling <deuling@de.ibm.com>

* gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
	gdbarch_address_class_type_flags.
	* dwarf2read.c (read_tag_pointer_type): Likewise.
	* gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
	gdbarch_address_class_type_flags_p.
	* dwarf2read.c (read_tag_pointer_type): Likewise.
	* gdbarch.c, gdbarch.h: Regenerate.
This commit is contained in:
Ulrich Weigand
2007-06-09 13:51:51 +00:00
parent bf6ae4641c
commit 849957d956
5 changed files with 14 additions and 34 deletions

View File

@@ -4559,11 +4559,12 @@ read_tag_pointer_type (struct die_info *die, struct dwarf2_cu *cu)
length accordingly. */
if (TYPE_LENGTH (type) != byte_size || addr_class != DW_ADDR_none)
{
if (ADDRESS_CLASS_TYPE_FLAGS_P ())
if (gdbarch_address_class_type_flags_p (current_gdbarch))
{
int type_flags;
type_flags = ADDRESS_CLASS_TYPE_FLAGS (byte_size, addr_class);
type_flags = gdbarch_address_class_type_flags
(current_gdbarch, byte_size, addr_class);
gdb_assert ((type_flags & ~TYPE_FLAG_ADDRESS_CLASS_ALL) == 0);
type = make_type_with_address_space (type, type_flags);
}