From 74a9bb82c55f8d399894d5b3525572c17c3a0312 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Wed, 12 Dec 2001 02:11:52 +0000 Subject: Approved by Jim Blandy: 2001-12-11 Fred Fish * c-typeprint.c (c_type_print_base): Use type flags access macros to test bits. * ch-typeprint.c (chill_type_print_base): Ditto. * ch-valprint.c (chill_val_print): Ditto. * d10v-tdep.c (d10v_pointer_to_address): Ditto. * dwarf2read.c (dwarf2_add_member_fn): Ditto. * dwarfread.c (read_structure_scope): Ditto. * gdbtypes.c (create_range_type): Dittol (create_set_type): Ditto. (check_typedef): Ditto. * jv-typeprint.c (java_type_print_base): Ditto. * p-typeprint.c (pascal_type_print_base): Ditto * p-valprint.c (pascal_val_print): Ditto. * stabsread.c (read_cfront_member_functions): Ditto. (read_member_functions): Ditto. (cleanup_undefined_types): Ditto. * valprint.c (val_print): Ditto. * valops.c (hand_function_call): Remove is_prototyped variable and just use type flag test macro directly. --- gdb/stabsread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/stabsread.c') diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 7b68242..620634a 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -869,7 +869,7 @@ read_cfront_member_functions (struct field_info *fip, char **pp, TYPE_CODE (new_sublist->fn_field.type) = TYPE_CODE_METHOD; /* If this is just a stub, then we don't have the real name here. */ - if (TYPE_FLAGS (new_sublist->fn_field.type) & TYPE_FLAG_STUB) + if (TYPE_STUB (new_sublist->fn_field.type)) { if (!TYPE_DOMAIN_TYPE (new_sublist->fn_field.type)) TYPE_DOMAIN_TYPE (new_sublist->fn_field.type) = type; @@ -3100,7 +3100,7 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type, /* If this is just a stub, then we don't have the real name here. */ - if (TYPE_FLAGS (new_sublist->fn_field.type) & TYPE_FLAG_STUB) + if (TYPE_STUB (new_sublist->fn_field.type)) { if (!TYPE_DOMAIN_TYPE (new_sublist->fn_field.type)) TYPE_DOMAIN_TYPE (new_sublist->fn_field.type) = type; @@ -4941,7 +4941,7 @@ cleanup_undefined_types (void) as well as in check_typedef to deal with the (legitimate in C though not C++) case of several types with the same name in different source files. */ - if (TYPE_FLAGS (*type) & TYPE_FLAG_STUB) + if (TYPE_STUB (*type)) { struct pending *ppt; int i; -- cgit v1.1