diff options
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gdb/values.c b/gdb/values.c index 67f91f01b10..7b6ce6fc210 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -214,7 +214,7 @@ value_release_to_mark (struct value *mark) struct value * value_copy (struct value *arg) { - register struct type *encl_type = VALUE_ENCLOSING_TYPE (arg); + struct type *encl_type = VALUE_ENCLOSING_TYPE (arg); struct value *val = allocate_value (encl_type); VALUE_TYPE (val) = VALUE_TYPE (arg); VALUE_LVAL (val) = VALUE_LVAL (arg); @@ -291,8 +291,8 @@ struct value * access_value_history (int num) { struct value_history_chunk *chunk; - register int i; - register int absnum = num; + int i; + int absnum = num; if (absnum <= 0) absnum += value_history_count; @@ -329,7 +329,7 @@ void clear_value_history (void) { struct value_history_chunk *next; - register int i; + int i; struct value *val; while (value_history_chain) @@ -347,7 +347,7 @@ clear_value_history (void) static void show_values (char *num_exp, int from_tty) { - register int i; + int i; struct value *val; static int num = 1; @@ -404,7 +404,7 @@ static struct internalvar *internalvars; struct internalvar * lookup_internalvar (char *name) { - register struct internalvar *var; + struct internalvar *var; for (var = internalvars; var; var = var->next) if (strcmp (var->name, name) == 0) @@ -436,7 +436,7 @@ void set_internalvar_component (struct internalvar *var, int offset, int bitpos, int bitsize, struct value *newval) { - register char *addr = VALUE_CONTENTS (var->value) + offset; + char *addr = VALUE_CONTENTS (var->value) + offset; if (bitsize) modify_field (addr, value_as_long (newval), @@ -483,7 +483,7 @@ internalvar_name (struct internalvar *var) void clear_internalvars (void) { - register struct internalvar *var; + struct internalvar *var; while (internalvars) { @@ -498,7 +498,7 @@ clear_internalvars (void) static void show_convenience (char *ignore, int from_tty) { - register struct internalvar *var; + struct internalvar *var; int varseen = 0; for (var = internalvars; var; var = var->next) @@ -664,9 +664,9 @@ value_as_address (struct value *val) LONGEST unpack_long (struct type *type, const char *valaddr) { - register enum type_code code = TYPE_CODE (type); - register int len = TYPE_LENGTH (type); - register int nosign = TYPE_UNSIGNED (type); + enum type_code code = TYPE_CODE (type); + int len = TYPE_LENGTH (type); + int nosign = TYPE_UNSIGNED (type); if (current_language->la_language == language_scm && is_scmvalue_type (type)) @@ -879,7 +879,7 @@ value_primitive_field (struct value *arg1, int offset, register int fieldno, register struct type *arg_type) { struct value *v; - register struct type *type; + struct type *type; CHECK_TYPEDEF (arg_type); type = TYPE_FIELD_TYPE (arg_type, fieldno); @@ -963,7 +963,7 @@ value_fn_field (struct value **arg1p, struct fn_field *f, int j, struct type *ty int offset) { struct value *v; - register struct type *ftype = TYPE_FN_FIELD_TYPE (f, j); + struct type *ftype = TYPE_FN_FIELD_TYPE (f, j); char *physname = TYPE_FN_FIELD_PHYSNAME (f, j); struct symbol *sym; struct minimal_symbol *msym; @@ -1110,8 +1110,8 @@ struct value * value_from_longest (struct type *type, register LONGEST num) { struct value *val = allocate_value (type); - register enum type_code code; - register int len; + enum type_code code; + int len; retry: code = TYPE_CODE (type); len = TYPE_LENGTH (type); @@ -1182,8 +1182,8 @@ value_from_double (struct type *type, DOUBLEST num) { struct value *val = allocate_value (type); struct type *base_type = check_typedef (type); - register enum type_code code = TYPE_CODE (base_type); - register int len = TYPE_LENGTH (base_type); + enum type_code code = TYPE_CODE (base_type); + int len = TYPE_LENGTH (base_type); if (code == TYPE_CODE_FLT) { @@ -1280,7 +1280,7 @@ generic_use_struct_convention (int gcc_p, struct type *value_type) int using_struct_return (struct type *value_type, int gcc_p) { - register enum type_code code = TYPE_CODE (value_type); + enum type_code code = TYPE_CODE (value_type); if (code == TYPE_CODE_ERROR) error ("Function return type unknown."); @@ -1302,7 +1302,7 @@ void set_return_value (struct value *val) { struct type *type = check_typedef (VALUE_TYPE (val)); - register enum type_code code = TYPE_CODE (type); + enum type_code code = TYPE_CODE (type); if (code == TYPE_CODE_ERROR) error ("Function return type unknown."); |