summaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-09-14 16:32:14 +0000
committerAndrew Cagney <cagney@redhat.com>2003-09-14 16:32:14 +0000
commit95d4fadae9ca50170b15d83840daaa23633619ee (patch)
treedb74a9a8274a8d07e533242bf81e024c85ba2553 /gdb/values.c
parentd3c20a43cc3d0060789ba0f919ef39401f99180e (diff)
downloadgdb-95d4fadae9ca50170b15d83840daaa23633619ee.tar.gz
2003-09-14 Andrew Cagney <cagney@redhat.com>
* alpha-nat.c: Remove some occurances of "register". * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto. * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto. * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto. * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto. * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto. * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto. * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto. * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto. * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto. * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto. * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto. * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto. * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto. * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto. * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto. * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto. * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto. * solib.c, somread.c, source.c, sparc-tdep.c: Ditto. * stabsread.c, stack.c, standalone.c, symfile.c: Ditto. * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto. * typeprint.c, utils.c, valarith.c, valops.c: Ditto. * values.c, vax-tdep.c, xcoffread.c: Ditto.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c40
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.");