X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Ftype-stack.c;h=94ff9ba8c91242782c1523eb7d144e597ba08d55;hb=5bb6e9dd7090cacb02bbe9f20d8b101a59a3bf99;hp=f8661d756534ff5187b3dee371cd58fbb52cf311;hpb=cf88be6855e5bb3d43e1fd78f28aeb2ec5fc11a1;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/type-stack.c b/gdb/type-stack.c index f8661d7565..94ff9ba8c9 100644 --- a/gdb/type-stack.c +++ b/gdb/type-stack.c @@ -67,8 +67,9 @@ type_stack::insert (struct expr_builder *pstate, const char *string) element.piece = tp_space_identifier; insert_into (slot, element); - element.int_val = address_space_name_to_int (pstate->gdbarch (), - string); + element.int_val + = address_space_name_to_type_instance_flags (pstate->gdbarch (), + string); insert_into (slot, element); } @@ -109,7 +110,7 @@ type_stack::follow_types (struct type *follow_type) int done = 0; int make_const = 0; int make_volatile = 0; - int make_addr_space = 0; + type_instance_flags make_addr_space = 0; bool make_restrict = false; bool make_atomic = false; int array_size; @@ -128,7 +129,7 @@ type_stack::follow_types (struct type *follow_type) make_volatile = 1; break; case tp_space_identifier: - make_addr_space = pop_int (); + make_addr_space = (enum type_instance_flag_value) pop_int (); break; case tp_atomic: make_atomic = true;