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.
This commit is contained in:
Andrew Cagney 2003-09-14 16:32:14 +00:00
parent 256ab948f5
commit 52f0bd74b2
85 changed files with 575 additions and 549 deletions

View file

@ -1,3 +1,29 @@
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.
2003-09-13 Andrew Cagney <cagney@redhat.com> 2003-09-13 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa64.h (struct frame_info): Declare opaque. * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.

View file

@ -59,8 +59,8 @@ static void
fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size, fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size,
int which, CORE_ADDR reg_addr) int which, CORE_ADDR reg_addr)
{ {
register int regno; int regno;
register int addr; int addr;
int bad_reg = -1; int bad_reg = -1;
/* Table to map a gdb regnum to an index in the core register /* Table to map a gdb regnum to an index in the core register
@ -200,7 +200,7 @@ kernel_u_size (void)
void void
supply_gregset (gdb_gregset_t *gregsetp) supply_gregset (gdb_gregset_t *gregsetp)
{ {
register long *regp = ALPHA_REGSET_BASE (gregsetp); long *regp = ALPHA_REGSET_BASE (gregsetp);
void *unique = ALPHA_REGSET_UNIQUE (gregsetp); void *unique = ALPHA_REGSET_UNIQUE (gregsetp);
/* PC is in slot 32. */ /* PC is in slot 32. */
@ -210,7 +210,7 @@ supply_gregset (gdb_gregset_t *gregsetp)
void void
fill_gregset (gdb_gregset_t *gregsetp, int regno) fill_gregset (gdb_gregset_t *gregsetp, int regno)
{ {
register long *regp = ALPHA_REGSET_BASE (gregsetp); long *regp = ALPHA_REGSET_BASE (gregsetp);
void *unique = ALPHA_REGSET_UNIQUE (gregsetp); void *unique = ALPHA_REGSET_UNIQUE (gregsetp);
/* PC is in slot 32. */ /* PC is in slot 32. */
@ -225,7 +225,7 @@ fill_gregset (gdb_gregset_t *gregsetp, int regno)
void void
supply_fpregset (gdb_fpregset_t *fpregsetp) supply_fpregset (gdb_fpregset_t *fpregsetp)
{ {
register long *regp = ALPHA_REGSET_BASE (fpregsetp); long *regp = ALPHA_REGSET_BASE (fpregsetp);
/* FPCR is in slot 32. */ /* FPCR is in slot 32. */
alpha_supply_fp_regs (-1, regp, regp + 31); alpha_supply_fp_regs (-1, regp, regp + 31);
@ -234,7 +234,7 @@ supply_fpregset (gdb_fpregset_t *fpregsetp)
void void
fill_fpregset (gdb_fpregset_t *fpregsetp, int regno) fill_fpregset (gdb_fpregset_t *fpregsetp, int regno)
{ {
register long *regp = ALPHA_REGSET_BASE (fpregsetp); long *regp = ALPHA_REGSET_BASE (fpregsetp);
/* FPCR is in slot 32. */ /* FPCR is in slot 32. */
alpha_fill_fp_regs (regno, regp, regp + 31); alpha_fill_fp_regs (regno, regp, regp + 31);

View file

@ -278,7 +278,7 @@ alpha_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr,
}; };
struct alpha_arg *alpha_args struct alpha_arg *alpha_args
= (struct alpha_arg *) alloca (nargs * sizeof (struct alpha_arg)); = (struct alpha_arg *) alloca (nargs * sizeof (struct alpha_arg));
register struct alpha_arg *m_arg; struct alpha_arg *m_arg;
char arg_reg_buffer[ALPHA_REGISTER_SIZE * ALPHA_NUM_ARG_REGS]; char arg_reg_buffer[ALPHA_REGISTER_SIZE * ALPHA_NUM_ARG_REGS];
int required_arg_regs; int required_arg_regs;

View file

@ -1492,7 +1492,7 @@ static void
arm_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, arm_print_float_info (struct gdbarch *gdbarch, struct ui_file *file,
struct frame_info *frame, const char *args) struct frame_info *frame, const char *args)
{ {
register unsigned long status = read_register (ARM_FPS_REGNUM); unsigned long status = read_register (ARM_FPS_REGNUM);
int type; int type;
type = (status >> 24) & 127; type = (status >> 24) & 127;
@ -2252,7 +2252,7 @@ static int
arm_use_struct_convention (int gcc_p, struct type *type) arm_use_struct_convention (int gcc_p, struct type *type)
{ {
int nRc; int nRc;
register enum type_code code; enum type_code code;
/* In the ARM ABI, "integer" like aggregate types are returned in /* In the ARM ABI, "integer" like aggregate types are returned in
registers. For an aggregate type to be integer like, its size registers. For an aggregate type to be integer like, its size

View file

@ -272,7 +272,7 @@ get_pc_function_start (CORE_ADDR pc)
struct symbol * struct symbol *
get_frame_function (struct frame_info *frame) get_frame_function (struct frame_info *frame)
{ {
register struct block *bl = get_frame_block (frame, 0); struct block *bl = get_frame_block (frame, 0);
if (bl == 0) if (bl == 0)
return 0; return 0;
return block_function (bl); return block_function (bl);
@ -285,7 +285,7 @@ get_frame_function (struct frame_info *frame)
struct symbol * struct symbol *
find_pc_sect_function (CORE_ADDR pc, struct sec *section) find_pc_sect_function (CORE_ADDR pc, struct sec *section)
{ {
register struct block *b = block_for_pc_sect (pc, section); struct block *b = block_for_pc_sect (pc, section);
if (b == 0) if (b == 0)
return 0; return 0;
return block_function (b); return block_function (b);
@ -513,8 +513,8 @@ struct frame_info *
block_innermost_frame (struct block *block) block_innermost_frame (struct block *block)
{ {
struct frame_info *frame; struct frame_info *frame;
register CORE_ADDR start; CORE_ADDR start;
register CORE_ADDR end; CORE_ADDR end;
CORE_ADDR calling_pc; CORE_ADDR calling_pc;
if (block == NULL) if (block == NULL)

View file

@ -512,9 +512,9 @@ get_number_or_range (char **pp)
static void static void
condition_command (char *arg, int from_tty) condition_command (char *arg, int from_tty)
{ {
register struct breakpoint *b; struct breakpoint *b;
char *p; char *p;
register int bnum; int bnum;
if (arg == 0) if (arg == 0)
error_no_arg ("breakpoint number"); error_no_arg ("breakpoint number");
@ -564,9 +564,9 @@ condition_command (char *arg, int from_tty)
static void static void
commands_command (char *arg, int from_tty) commands_command (char *arg, int from_tty)
{ {
register struct breakpoint *b; struct breakpoint *b;
char *p; char *p;
register int bnum; int bnum;
struct command_line *l; struct command_line *l;
/* If we allowed this, we would have problems with when to /* If we allowed this, we would have problems with when to
@ -740,7 +740,7 @@ insert_catchpoint (struct ui_out *uo, void *args)
int int
insert_breakpoints (void) insert_breakpoints (void)
{ {
register struct breakpoint *b, *temp; struct breakpoint *b, *temp;
int return_val = 0; /* return success code. */ int return_val = 0; /* return success code. */
int val = 0; int val = 0;
int disabled_breaks = 0; int disabled_breaks = 0;
@ -1118,7 +1118,7 @@ You may have requested too many hardware breakpoints/watchpoints.\n");
int int
remove_breakpoints (void) remove_breakpoints (void)
{ {
register struct breakpoint *b; struct breakpoint *b;
int val; int val;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
@ -1136,7 +1136,7 @@ remove_breakpoints (void)
int int
remove_hw_watchpoints (void) remove_hw_watchpoints (void)
{ {
register struct breakpoint *b; struct breakpoint *b;
int val; int val;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
@ -1157,7 +1157,7 @@ remove_hw_watchpoints (void)
int int
reattach_breakpoints (int pid) reattach_breakpoints (int pid)
{ {
register struct breakpoint *b; struct breakpoint *b;
int val; int val;
struct cleanup *old_chain = save_inferior_ptid (); struct cleanup *old_chain = save_inferior_ptid ();
@ -1320,7 +1320,7 @@ update_breakpoints_after_exec (void)
int int
detach_breakpoints (int pid) detach_breakpoints (int pid)
{ {
register struct breakpoint *b; struct breakpoint *b;
int val; int val;
struct cleanup *old_chain = save_inferior_ptid (); struct cleanup *old_chain = save_inferior_ptid ();
@ -1542,7 +1542,7 @@ remove_breakpoint (struct breakpoint *b, insertion_state_t is)
void void
mark_breakpoints_out (void) mark_breakpoints_out (void)
{ {
register struct breakpoint *b; struct breakpoint *b;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
b->inserted = 0; b->inserted = 0;
@ -1563,7 +1563,7 @@ mark_breakpoints_out (void)
void void
breakpoint_init_inferior (enum inf_context context) breakpoint_init_inferior (enum inf_context context)
{ {
register struct breakpoint *b, *temp; struct breakpoint *b, *temp;
static int warning_needed = 0; static int warning_needed = 0;
ALL_BREAKPOINTS_SAFE (b, temp) ALL_BREAKPOINTS_SAFE (b, temp)
@ -1638,7 +1638,7 @@ breakpoint_init_inferior (enum inf_context context)
enum breakpoint_here enum breakpoint_here
breakpoint_here_p (CORE_ADDR pc) breakpoint_here_p (CORE_ADDR pc)
{ {
register struct breakpoint *b; struct breakpoint *b;
int any_breakpoint_here = 0; int any_breakpoint_here = 0;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
@ -1667,7 +1667,7 @@ breakpoint_here_p (CORE_ADDR pc)
int int
breakpoint_inserted_here_p (CORE_ADDR pc) breakpoint_inserted_here_p (CORE_ADDR pc)
{ {
register struct breakpoint *b; struct breakpoint *b;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
if (b->inserted if (b->inserted
@ -2507,7 +2507,7 @@ which its expression is valid.\n");
bpstat bpstat
bpstat_stop_status (CORE_ADDR *pc, int not_a_sw_breakpoint) bpstat_stop_status (CORE_ADDR *pc, int not_a_sw_breakpoint)
{ {
register struct breakpoint *b, *temp; struct breakpoint *b, *temp;
CORE_ADDR bp_addr; CORE_ADDR bp_addr;
/* True if we've hit a breakpoint (as opposed to a watchpoint). */ /* True if we've hit a breakpoint (as opposed to a watchpoint). */
int real_breakpoint = 0; int real_breakpoint = 0;
@ -3220,8 +3220,8 @@ static void
print_one_breakpoint (struct breakpoint *b, print_one_breakpoint (struct breakpoint *b,
CORE_ADDR *last_addr) CORE_ADDR *last_addr)
{ {
register struct command_line *l; struct command_line *l;
register struct symbol *sym; struct symbol *sym;
struct ep_type_description struct ep_type_description
{ {
enum bptype type; enum bptype type;
@ -3527,7 +3527,7 @@ static int
do_captured_breakpoint_query (struct ui_out *uiout, void *data) do_captured_breakpoint_query (struct ui_out *uiout, void *data)
{ {
struct captured_breakpoint_query_args *args = data; struct captured_breakpoint_query_args *args = data;
register struct breakpoint *b; struct breakpoint *b;
CORE_ADDR dummy_addr = 0; CORE_ADDR dummy_addr = 0;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
{ {
@ -3579,7 +3579,7 @@ user_settable_breakpoint (const struct breakpoint *b)
static void static void
breakpoint_1 (int bnum, int allflag) breakpoint_1 (int bnum, int allflag)
{ {
register struct breakpoint *b; struct breakpoint *b;
CORE_ADDR last_addr = (CORE_ADDR) -1; CORE_ADDR last_addr = (CORE_ADDR) -1;
int nr_printable_breakpoints; int nr_printable_breakpoints;
struct cleanup *bkpttbl_chain; struct cleanup *bkpttbl_chain;
@ -3695,8 +3695,8 @@ maintenance_info_breakpoints (char *bnum_exp, int from_tty)
static void static void
describe_other_breakpoints (CORE_ADDR pc, asection *section) describe_other_breakpoints (CORE_ADDR pc, asection *section)
{ {
register int others = 0; int others = 0;
register struct breakpoint *b; struct breakpoint *b;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
if (b->address == pc) /* address match / overlay match */ if (b->address == pc) /* address match / overlay match */
@ -3784,8 +3784,8 @@ breakpoint_address_is_meaningful (struct breakpoint *bpt)
static void static void
check_duplicates (struct breakpoint *bpt) check_duplicates (struct breakpoint *bpt)
{ {
register struct breakpoint *b; struct breakpoint *b;
register int count = 0; int count = 0;
struct breakpoint *perm_bp = 0; struct breakpoint *perm_bp = 0;
CORE_ADDR address = bpt->address; CORE_ADDR address = bpt->address;
asection *section = bpt->section; asection *section = bpt->section;
@ -3862,7 +3862,7 @@ check_duplicates (struct breakpoint *bpt)
struct breakpoint * struct breakpoint *
set_raw_breakpoint (struct symtab_and_line sal, enum bptype bptype) set_raw_breakpoint (struct symtab_and_line sal, enum bptype bptype)
{ {
register struct breakpoint *b, *b1; struct breakpoint *b, *b1;
b = (struct breakpoint *) xmalloc (sizeof (struct breakpoint)); b = (struct breakpoint *) xmalloc (sizeof (struct breakpoint));
memset (b, 0, sizeof (*b)); memset (b, 0, sizeof (*b));
@ -3971,7 +3971,7 @@ create_longjmp_breakpoint (char *func_name)
void void
enable_longjmp_breakpoint (void) enable_longjmp_breakpoint (void)
{ {
register struct breakpoint *b; struct breakpoint *b;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
if (b->type == bp_longjmp) if (b->type == bp_longjmp)
@ -3984,7 +3984,7 @@ enable_longjmp_breakpoint (void)
void void
disable_longjmp_breakpoint (void) disable_longjmp_breakpoint (void)
{ {
register struct breakpoint *b; struct breakpoint *b;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
if (b->type == bp_longjmp if (b->type == bp_longjmp
@ -4023,7 +4023,7 @@ create_overlay_event_breakpoint (char *func_name)
void void
enable_overlay_breakpoints (void) enable_overlay_breakpoints (void)
{ {
register struct breakpoint *b; struct breakpoint *b;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
if (b->type == bp_overlay_event) if (b->type == bp_overlay_event)
@ -4037,7 +4037,7 @@ enable_overlay_breakpoints (void)
void void
disable_overlay_breakpoints (void) disable_overlay_breakpoints (void)
{ {
register struct breakpoint *b; struct breakpoint *b;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
if (b->type == bp_overlay_event) if (b->type == bp_overlay_event)
@ -4076,7 +4076,7 @@ remove_thread_event_breakpoints (void)
void void
remove_solib_event_breakpoints (void) remove_solib_event_breakpoints (void)
{ {
register struct breakpoint *b, *temp; struct breakpoint *b, *temp;
ALL_BREAKPOINTS_SAFE (b, temp) ALL_BREAKPOINTS_SAFE (b, temp)
if (b->type == bp_shlib_event) if (b->type == bp_shlib_event)
@ -4308,7 +4308,7 @@ create_exec_event_catchpoint (int tempflag, char *cond_string)
static int static int
hw_breakpoint_used_count (void) hw_breakpoint_used_count (void)
{ {
register struct breakpoint *b; struct breakpoint *b;
int i = 0; int i = 0;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
@ -4323,7 +4323,7 @@ hw_breakpoint_used_count (void)
static int static int
hw_watchpoint_used_count (enum bptype type, int *other_type_used) hw_watchpoint_used_count (enum bptype type, int *other_type_used)
{ {
register struct breakpoint *b; struct breakpoint *b;
int i = 0; int i = 0;
*other_type_used = 0; *other_type_used = 0;
@ -4352,7 +4352,7 @@ hw_watchpoint_used_count (enum bptype type, int *other_type_used)
void void
set_longjmp_resume_breakpoint (CORE_ADDR pc, struct frame_id frame_id) set_longjmp_resume_breakpoint (CORE_ADDR pc, struct frame_id frame_id)
{ {
register struct breakpoint *b; struct breakpoint *b;
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
if (b->type == bp_longjmp_resume) if (b->type == bp_longjmp_resume)
@ -4414,7 +4414,7 @@ struct breakpoint *
set_momentary_breakpoint (struct symtab_and_line sal, struct frame_id frame_id, set_momentary_breakpoint (struct symtab_and_line sal, struct frame_id frame_id,
enum bptype type) enum bptype type)
{ {
register struct breakpoint *b; struct breakpoint *b;
b = set_raw_breakpoint (sal, type); b = set_raw_breakpoint (sal, type);
b->enable_state = bp_enabled; b->enable_state = bp_enabled;
b->disposition = disp_donttouch; b->disposition = disp_donttouch;
@ -4743,7 +4743,7 @@ break_command_1 (char *arg, int flag, int from_tty)
{ {
int tempflag, hardwareflag; int tempflag, hardwareflag;
struct symtabs_and_lines sals; struct symtabs_and_lines sals;
register struct expression **cond = 0; struct expression **cond = 0;
/* Pointers in arg to the start, and one past the end, of the /* Pointers in arg to the start, and one past the end, of the
condition. */ condition. */
char **cond_string = (char **) NULL; char **cond_string = (char **) NULL;
@ -4886,7 +4886,7 @@ do_captured_breakpoint (void *data)
{ {
struct captured_breakpoint_args *args = data; struct captured_breakpoint_args *args = data;
struct symtabs_and_lines sals; struct symtabs_and_lines sals;
register struct expression **cond; struct expression **cond;
struct cleanup *old_chain; struct cleanup *old_chain;
struct cleanup *breakpoint_chain = NULL; struct cleanup *breakpoint_chain = NULL;
int i; int i;
@ -6510,8 +6510,8 @@ breakpoint_auto_delete (bpstat bs)
void void
delete_breakpoint (struct breakpoint *bpt) delete_breakpoint (struct breakpoint *bpt)
{ {
register struct breakpoint *b; struct breakpoint *b;
register bpstat bs; bpstat bs;
if (bpt == NULL) if (bpt == NULL)
error ("Internal error (attempted to delete a NULL breakpoint)"); error ("Internal error (attempted to delete a NULL breakpoint)");
@ -6999,7 +6999,7 @@ breakpoint_re_set_thread (struct breakpoint *b)
void void
set_ignore_count (int bptnum, int count, int from_tty) set_ignore_count (int bptnum, int count, int from_tty)
{ {
register struct breakpoint *b; struct breakpoint *b;
if (count < 0) if (count < 0)
count = 0; count = 0;
@ -7044,7 +7044,7 @@ static void
ignore_command (char *args, int from_tty) ignore_command (char *args, int from_tty)
{ {
char *p = args; char *p = args;
register int num; int num;
if (p == 0) if (p == 0)
error_no_arg ("a breakpoint number"); error_no_arg ("a breakpoint number");
@ -7068,10 +7068,10 @@ ignore_command (char *args, int from_tty)
static void static void
map_breakpoint_numbers (char *args, void (*function) (struct breakpoint *)) map_breakpoint_numbers (char *args, void (*function) (struct breakpoint *))
{ {
register char *p = args; char *p = args;
char *p1; char *p1;
register int num; int num;
register struct breakpoint *b, *tmp; struct breakpoint *b, *tmp;
int match; int match;
if (p == 0) if (p == 0)
@ -7136,7 +7136,7 @@ disable_breakpoint (struct breakpoint *bpt)
static void static void
disable_command (char *args, int from_tty) disable_command (char *args, int from_tty)
{ {
register struct breakpoint *bpt; struct breakpoint *bpt;
if (args == 0) if (args == 0)
ALL_BREAKPOINTS (bpt) ALL_BREAKPOINTS (bpt)
switch (bpt->type) switch (bpt->type)
@ -7270,7 +7270,7 @@ enable_breakpoint (struct breakpoint *bpt)
static void static void
enable_command (char *args, int from_tty) enable_command (char *args, int from_tty)
{ {
register struct breakpoint *bpt; struct breakpoint *bpt;
if (args == 0) if (args == 0)
ALL_BREAKPOINTS (bpt) ALL_BREAKPOINTS (bpt)
switch (bpt->type) switch (bpt->type)

View file

@ -84,7 +84,7 @@ static int compare_line_numbers (const void *ln1p, const void *ln2p);
void void
add_free_pendings (struct pending *list) add_free_pendings (struct pending *list)
{ {
register struct pending *link = list; struct pending *link = list;
if (list) if (list)
{ {
@ -102,7 +102,7 @@ add_free_pendings (struct pending *list)
void void
add_symbol_to_list (struct symbol *symbol, struct pending **listhead) add_symbol_to_list (struct symbol *symbol, struct pending **listhead)
{ {
register struct pending *link; struct pending *link;
/* If this is an alias for another symbol, don't add it. */ /* If this is an alias for another symbol, don't add it. */
if (symbol->ginfo.name && symbol->ginfo.name[0] == '#') if (symbol->ginfo.name && symbol->ginfo.name[0] == '#')
@ -226,9 +226,9 @@ finish_block (struct symbol *symbol, struct pending **listhead,
CORE_ADDR start, CORE_ADDR end, CORE_ADDR start, CORE_ADDR end,
struct objfile *objfile) struct objfile *objfile)
{ {
register struct pending *next, *next1; struct pending *next, *next1;
register struct block *block; struct block *block;
register struct pending_block *pblock; struct pending_block *pblock;
struct pending_block *opblock; struct pending_block *opblock;
block = allocate_block (&objfile->symbol_obstack); block = allocate_block (&objfile->symbol_obstack);
@ -447,7 +447,7 @@ void
record_pending_block (struct objfile *objfile, struct block *block, record_pending_block (struct objfile *objfile, struct block *block,
struct pending_block *opblock) struct pending_block *opblock)
{ {
register struct pending_block *pblock; struct pending_block *pblock;
pblock = (struct pending_block *) pblock = (struct pending_block *)
obstack_alloc (&objfile->symbol_obstack, sizeof (struct pending_block)); obstack_alloc (&objfile->symbol_obstack, sizeof (struct pending_block));
@ -467,9 +467,9 @@ record_pending_block (struct objfile *objfile, struct block *block,
static struct blockvector * static struct blockvector *
make_blockvector (struct objfile *objfile) make_blockvector (struct objfile *objfile)
{ {
register struct pending_block *next; struct pending_block *next;
register struct blockvector *blockvector; struct blockvector *blockvector;
register int i; int i;
/* Count the length of the list of blocks. */ /* Count the length of the list of blocks. */
@ -539,7 +539,7 @@ make_blockvector (struct objfile *objfile)
void void
start_subfile (char *name, char *dirname) start_subfile (char *name, char *dirname)
{ {
register struct subfile *subfile; struct subfile *subfile;
/* See if this subfile is already known as a subfile of the current /* See if this subfile is already known as a subfile of the current
main source file. */ main source file. */
@ -677,7 +677,7 @@ patch_subfile_names (struct subfile *subfile, char *name)
void void
push_subfile (void) push_subfile (void)
{ {
register struct subfile_stack *tem struct subfile_stack *tem
= (struct subfile_stack *) xmalloc (sizeof (struct subfile_stack)); = (struct subfile_stack *) xmalloc (sizeof (struct subfile_stack));
tem->next = subfile_stack; tem->next = subfile_stack;
@ -692,8 +692,8 @@ push_subfile (void)
char * char *
pop_subfile (void) pop_subfile (void)
{ {
register char *name; char *name;
register struct subfile_stack *link = subfile_stack; struct subfile_stack *link = subfile_stack;
if (link == NULL) if (link == NULL)
{ {
@ -824,10 +824,10 @@ start_symtab (char *name, char *dirname, CORE_ADDR start_addr)
struct symtab * struct symtab *
end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section) end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section)
{ {
register struct symtab *symtab = NULL; struct symtab *symtab = NULL;
register struct blockvector *blockvector; struct blockvector *blockvector;
register struct subfile *subfile; struct subfile *subfile;
register struct context_stack *cstk; struct context_stack *cstk;
struct subfile *nextsub; struct subfile *nextsub;
/* Finish the lexical context of the last function in the file; pop /* Finish the lexical context of the last function in the file; pop
@ -1056,7 +1056,7 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section)
struct context_stack * struct context_stack *
push_context (int desc, CORE_ADDR valu) push_context (int desc, CORE_ADDR valu)
{ {
register struct context_stack *new; struct context_stack *new;
if (context_stack_depth == context_stack_size) if (context_stack_depth == context_stack_size)
{ {
@ -1118,7 +1118,7 @@ record_debugformat (char *format)
void void
merge_symbol_lists (struct pending **srclist, struct pending **targetlist) merge_symbol_lists (struct pending **srclist, struct pending **targetlist)
{ {
register int i; int i;
if (!srclist || !*srclist) if (!srclist || !*srclist)
return; return;

View file

@ -65,7 +65,7 @@ void
c_print_type (struct type *type, char *varstring, struct ui_file *stream, c_print_type (struct type *type, char *varstring, struct ui_file *stream,
int show, int level) int show, int level)
{ {
register enum type_code code; enum type_code code;
int demangled_args; int demangled_args;
int need_post_space; int need_post_space;

View file

@ -70,7 +70,7 @@ c_val_print (struct type *type, char *valaddr, int embedded_offset,
CORE_ADDR address, struct ui_file *stream, int format, CORE_ADDR address, struct ui_file *stream, int format,
int deref_ref, int recurse, enum val_prettyprint pretty) int deref_ref, int recurse, enum val_prettyprint pretty)
{ {
register unsigned int i = 0; /* Number of characters printed */ unsigned int i = 0; /* Number of characters printed */
unsigned len; unsigned len;
struct type *elttype; struct type *elttype;
unsigned eltlen; unsigned eltlen;

View file

@ -197,7 +197,7 @@ static void coff_symtab_read (long, unsigned int, struct objfile *);
static void static void
coff_locate_sections (bfd *abfd, asection *sectp, void *csip) coff_locate_sections (bfd *abfd, asection *sectp, void *csip)
{ {
register struct coff_symfile_info *csi; struct coff_symfile_info *csi;
const char *name; const char *name;
csi = (struct coff_symfile_info *) csip; csi = (struct coff_symfile_info *) csip;
@ -339,8 +339,8 @@ coff_lookup_type (register int index)
static struct type * static struct type *
coff_alloc_type (int index) coff_alloc_type (int index)
{ {
register struct type **type_addr = coff_lookup_type (index); struct type **type_addr = coff_lookup_type (index);
register struct type *type = *type_addr; struct type *type = *type_addr;
/* If we are referring to a type not known at all yet, /* If we are referring to a type not known at all yet,
allocate an empty type for it. allocate an empty type for it.
@ -515,7 +515,7 @@ coff_symfile_read (struct objfile *objfile, int mainline)
bfd *abfd = objfile->obfd; bfd *abfd = objfile->obfd;
coff_data_type *cdata = coff_data (abfd); coff_data_type *cdata = coff_data (abfd);
char *name = bfd_get_filename (abfd); char *name = bfd_get_filename (abfd);
register int val; int val;
unsigned int num_symbols; unsigned int num_symbols;
int symtab_offset; int symtab_offset;
int stringtab_offset; int stringtab_offset;
@ -679,9 +679,9 @@ static void
coff_symtab_read (long symtab_offset, unsigned int nsyms, coff_symtab_read (long symtab_offset, unsigned int nsyms,
struct objfile *objfile) struct objfile *objfile)
{ {
register struct context_stack *new; struct context_stack *new;
struct coff_symbol coff_symbol; struct coff_symbol coff_symbol;
register struct coff_symbol *cs = &coff_symbol; struct coff_symbol *cs = &coff_symbol;
static struct internal_syment main_sym; static struct internal_syment main_sym;
static union internal_auxent main_aux; static union internal_auxent main_aux;
struct coff_symbol fcn_cs_saved; struct coff_symbol fcn_cs_saved;
@ -1270,7 +1270,7 @@ static char *
coff_getfilename (union internal_auxent *aux_entry) coff_getfilename (union internal_auxent *aux_entry)
{ {
static char buffer[BUFSIZ]; static char buffer[BUFSIZ];
register char *temp; char *temp;
char *result; char *result;
if (aux_entry->x_file.x_n.x_zeroes == 0) if (aux_entry->x_file.x_n.x_zeroes == 0)
@ -1351,7 +1351,7 @@ static void
enter_linenos (long file_offset, register int first_line, enter_linenos (long file_offset, register int first_line,
register int last_line, struct objfile *objfile) register int last_line, struct objfile *objfile)
{ {
register char *rawptr; char *rawptr;
struct internal_lineno lptr; struct internal_lineno lptr;
if (!linetab) if (!linetab)
@ -1390,8 +1390,8 @@ enter_linenos (long file_offset, register int first_line,
static void static void
patch_type (struct type *type, struct type *real_type) patch_type (struct type *type, struct type *real_type)
{ {
register struct type *target = TYPE_TARGET_TYPE (type); struct type *target = TYPE_TARGET_TYPE (type);
register struct type *real_target = TYPE_TARGET_TYPE (real_type); struct type *real_target = TYPE_TARGET_TYPE (real_type);
int field_size = TYPE_NFIELDS (real_target) * sizeof (struct field); int field_size = TYPE_NFIELDS (real_target) * sizeof (struct field);
TYPE_LENGTH (target) = TYPE_LENGTH (real_target); TYPE_LENGTH (target) = TYPE_LENGTH (real_target);
@ -1414,9 +1414,9 @@ patch_type (struct type *type, struct type *real_type)
static void static void
patch_opaque_types (struct symtab *s) patch_opaque_types (struct symtab *s)
{ {
register struct block *b; struct block *b;
struct dict_iterator iter; struct dict_iterator iter;
register struct symbol *real_sym; struct symbol *real_sym;
/* Go through the per-file symbols only */ /* Go through the per-file symbols only */
b = BLOCKVECTOR_BLOCK (BLOCKVECTOR (s), STATIC_BLOCK); b = BLOCKVECTOR_BLOCK (BLOCKVECTOR (s), STATIC_BLOCK);
@ -1476,7 +1476,7 @@ process_coff_symbol (register struct coff_symbol *cs,
register union internal_auxent *aux, register union internal_auxent *aux,
struct objfile *objfile) struct objfile *objfile)
{ {
register struct symbol *sym struct symbol *sym
= (struct symbol *) obstack_alloc (&objfile->symbol_obstack, = (struct symbol *) obstack_alloc (&objfile->symbol_obstack,
sizeof (struct symbol)); sizeof (struct symbol));
char *name; char *name;
@ -1699,7 +1699,7 @@ static struct type *
decode_type (register struct coff_symbol *cs, unsigned int c_type, decode_type (register struct coff_symbol *cs, unsigned int c_type,
register union internal_auxent *aux) register union internal_auxent *aux)
{ {
register struct type *type = 0; struct type *type = 0;
unsigned int new_c_type; unsigned int new_c_type;
if (c_type & ~N_BTMASK) if (c_type & ~N_BTMASK)
@ -1949,14 +1949,14 @@ coff_read_struct_type (int index, int length, int lastsym)
struct field field; struct field field;
}; };
register struct type *type; struct type *type;
register struct nextfield *list = 0; struct nextfield *list = 0;
struct nextfield *new; struct nextfield *new;
int nfields = 0; int nfields = 0;
register int n; int n;
char *name; char *name;
struct coff_symbol member_sym; struct coff_symbol member_sym;
register struct coff_symbol *ms = &member_sym; struct coff_symbol *ms = &member_sym;
struct internal_syment sub_sym; struct internal_syment sub_sym;
union internal_auxent sub_aux; union internal_auxent sub_aux;
int done = 0; int done = 0;
@ -2040,18 +2040,18 @@ coff_read_struct_type (int index, int length, int lastsym)
static struct type * static struct type *
coff_read_enum_type (int index, int length, int lastsym) coff_read_enum_type (int index, int length, int lastsym)
{ {
register struct symbol *sym; struct symbol *sym;
register struct type *type; struct type *type;
int nsyms = 0; int nsyms = 0;
int done = 0; int done = 0;
struct pending **symlist; struct pending **symlist;
struct coff_symbol member_sym; struct coff_symbol member_sym;
register struct coff_symbol *ms = &member_sym; struct coff_symbol *ms = &member_sym;
struct internal_syment sub_sym; struct internal_syment sub_sym;
union internal_auxent sub_aux; union internal_auxent sub_aux;
struct pending *osyms, *syms; struct pending *osyms, *syms;
int o_nsyms; int o_nsyms;
register int n; int n;
char *name; char *name;
int unsigned_enum = 1; int unsigned_enum = 1;

View file

@ -310,8 +310,8 @@ read_memory_unsigned_integer (CORE_ADDR memaddr, int len)
void void
read_memory_string (CORE_ADDR memaddr, char *buffer, int max_len) read_memory_string (CORE_ADDR memaddr, char *buffer, int max_len)
{ {
register char *cp; char *cp;
register int i; int i;
int cnt; int cnt;
cp = buffer; cp = buffer;

View file

@ -483,11 +483,11 @@ overload_list_add_symbol (struct symbol *sym, char *oload_name)
struct symbol ** struct symbol **
make_symbol_overload_list (struct symbol *fsym) make_symbol_overload_list (struct symbol *fsym)
{ {
register struct symbol *sym; struct symbol *sym;
register struct symtab *s; struct symtab *s;
register struct partial_symtab *ps; struct partial_symtab *ps;
register struct objfile *objfile; struct objfile *objfile;
register struct block *b, *surrounding_static_block = 0; struct block *b, *surrounding_static_block = 0;
struct dict_iterator iter; struct dict_iterator iter;
/* The name we are completing on. */ /* The name we are completing on. */
char *oload_name = NULL; char *oload_name = NULL;

View file

@ -686,7 +686,7 @@ cp_print_class_member (char *valaddr, struct type *domain,
print it. */ print it. */
int extra = 0; int extra = 0;
int bits = 0; int bits = 0;
register unsigned int i; unsigned int i;
unsigned len = TYPE_NFIELDS (domain); unsigned len = TYPE_NFIELDS (domain);
/* @@ Make VAL into bit offset */ /* @@ Make VAL into bit offset */

View file

@ -1148,7 +1148,7 @@ cris_frame_init_saved_regs (struct frame_info *fi)
get_frame_base (fi)); get_frame_base (fi));
/* Examine the entire prologue. */ /* Examine the entire prologue. */
register int frameless_p = 0; int frameless_p = 0;
/* Has this frame's registers already been initialized? */ /* Has this frame's registers already been initialized? */
if (get_frame_saved_regs (fi)) if (get_frame_saved_regs (fi))
@ -1500,9 +1500,9 @@ cris_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
static void static void
cris_pop_frame (void) cris_pop_frame (void)
{ {
register struct frame_info *fi = get_current_frame (); struct frame_info *fi = get_current_frame ();
register int regno; int regno;
register int stack_offset = 0; int stack_offset = 0;
if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi),
get_frame_base (fi), get_frame_base (fi),

View file

@ -352,8 +352,8 @@ add_this_object_header_file (int i)
static void static void
add_old_header_file (char *name, int instance) add_old_header_file (char *name, int instance)
{ {
register struct header_file *p = HEADER_FILES (current_objfile); struct header_file *p = HEADER_FILES (current_objfile);
register int i; int i;
for (i = 0; i < N_HEADER_FILES (current_objfile); i++) for (i = 0; i < N_HEADER_FILES (current_objfile); i++)
if (STREQ (p[i].name, name) && instance == p[i].instance) if (STREQ (p[i].name, name) && instance == p[i].instance)
@ -378,8 +378,8 @@ add_old_header_file (char *name, int instance)
static void static void
add_new_header_file (char *name, int instance) add_new_header_file (char *name, int instance)
{ {
register int i; int i;
register struct header_file *hfile; struct header_file *hfile;
/* Make sure there is room for one more header file. */ /* Make sure there is room for one more header file. */
@ -421,7 +421,7 @@ add_new_header_file (char *name, int instance)
static struct type ** static struct type **
explicit_lookup_type (int real_filenum, int index) explicit_lookup_type (int real_filenum, int index)
{ {
register struct header_file *f = &HEADER_FILES (current_objfile)[real_filenum]; struct header_file *f = &HEADER_FILES (current_objfile)[real_filenum];
if (index >= f->length) if (index >= f->length)
{ {
@ -1292,12 +1292,12 @@ function_outside_compilation_unit_complaint (const char *arg1)
static void static void
read_dbx_symtab (struct objfile *objfile) read_dbx_symtab (struct objfile *objfile)
{ {
register struct external_nlist *bufp = 0; /* =0 avoids gcc -Wall glitch */ struct external_nlist *bufp = 0; /* =0 avoids gcc -Wall glitch */
struct internal_nlist nlist; struct internal_nlist nlist;
CORE_ADDR text_addr; CORE_ADDR text_addr;
int text_size; int text_size;
register char *namestring; char *namestring;
int nsl; int nsl;
int past_first_source_file = 0; int past_first_source_file = 0;
CORE_ADDR last_o_file_start = 0; CORE_ADDR last_o_file_start = 0;
@ -2588,12 +2588,12 @@ dbx_psymtab_to_symtab (struct partial_symtab *pst)
static void static void
read_ofile_symtab (struct partial_symtab *pst) read_ofile_symtab (struct partial_symtab *pst)
{ {
register char *namestring; char *namestring;
register struct external_nlist *bufp; struct external_nlist *bufp;
struct internal_nlist nlist; struct internal_nlist nlist;
unsigned char type; unsigned char type;
unsigned max_symnum; unsigned max_symnum;
register bfd *abfd; bfd *abfd;
struct objfile *objfile; struct objfile *objfile;
int sym_offset; /* Offset to start of symbols to read */ int sym_offset; /* Offset to start of symbols to read */
int sym_size; /* Size of symbols to read */ int sym_size; /* Size of symbols to read */
@ -2805,7 +2805,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, char *name,
static CORE_ADDR last_pc_address; static CORE_ADDR last_pc_address;
#endif #endif
register struct context_stack *new; struct context_stack *new;
/* This remembers the address of the start of a function. It is used /* This remembers the address of the start of a function. It is used
because in Solaris 2, N_LBRAC, N_RBRAC, and N_SLINE entries are because in Solaris 2, N_LBRAC, N_RBRAC, and N_SLINE entries are
relative to the current function's start address. On systems relative to the current function's start address. On systems

View file

@ -217,7 +217,7 @@ dcache_invalidate (DCACHE *dcache)
static struct dcache_block * static struct dcache_block *
dcache_hit (DCACHE *dcache, CORE_ADDR addr) dcache_hit (DCACHE *dcache, CORE_ADDR addr)
{ {
register struct dcache_block *db; struct dcache_block *db;
/* Search all cache blocks for one that is at this address. */ /* Search all cache blocks for one that is at this address. */
db = dcache->valid_head; db = dcache->valid_head;
@ -383,7 +383,7 @@ dcache_read_line (DCACHE *dcache, struct dcache_block *db)
static struct dcache_block * static struct dcache_block *
dcache_alloc (DCACHE *dcache, CORE_ADDR addr) dcache_alloc (DCACHE *dcache, CORE_ADDR addr)
{ {
register struct dcache_block *db; struct dcache_block *db;
/* Take something from the free list */ /* Take something from the free list */
db = dcache->free_head; db = dcache->free_head;
@ -444,7 +444,7 @@ dcache_writeback (DCACHE *dcache)
static int static int
dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr)
{ {
register struct dcache_block *db = dcache_hit (dcache, addr); struct dcache_block *db = dcache_hit (dcache, addr);
if (!db) if (!db)
{ {
@ -471,7 +471,7 @@ dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr)
static int static int
dcache_poke_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) dcache_poke_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr)
{ {
register struct dcache_block *db = dcache_hit (dcache, addr); struct dcache_block *db = dcache_hit (dcache, addr);
if (!db) if (!db)
{ {

View file

@ -2133,7 +2133,7 @@ static void
read_func_scope (struct die_info *die, struct objfile *objfile, read_func_scope (struct die_info *die, struct objfile *objfile,
const struct comp_unit_head *cu_header) const struct comp_unit_head *cu_header)
{ {
register struct context_stack *new; struct context_stack *new;
CORE_ADDR lowpc; CORE_ADDR lowpc;
CORE_ADDR highpc; CORE_ADDR highpc;
struct die_info *child_die; struct die_info *child_die;
@ -2244,7 +2244,7 @@ static void
read_lexical_block_scope (struct die_info *die, struct objfile *objfile, read_lexical_block_scope (struct die_info *die, struct objfile *objfile,
const struct comp_unit_head *cu_header) const struct comp_unit_head *cu_header)
{ {
register struct context_stack *new; struct context_stack *new;
CORE_ADDR lowpc, highpc; CORE_ADDR lowpc, highpc;
struct die_info *child_die; struct die_info *child_die;

View file

@ -77,7 +77,7 @@ static void free_elfinfo (void *);
static void static void
elf_locate_sections (bfd *ignore_abfd, asection *sectp, void *eip) elf_locate_sections (bfd *ignore_abfd, asection *sectp, void *eip)
{ {
register struct elfinfo *ei; struct elfinfo *ei;
ei = (struct elfinfo *) eip; ei = (struct elfinfo *) eip;
if (STREQ (sectp->name, ".debug")) if (STREQ (sectp->name, ".debug"))

View file

@ -30,7 +30,7 @@
struct environ * struct environ *
make_environ (void) make_environ (void)
{ {
register struct environ *e; struct environ *e;
e = (struct environ *) xmalloc (sizeof (struct environ)); e = (struct environ *) xmalloc (sizeof (struct environ));
@ -45,7 +45,7 @@ make_environ (void)
void void
free_environ (register struct environ *e) free_environ (register struct environ *e)
{ {
register char **vector = e->vector; char **vector = e->vector;
while (*vector) while (*vector)
xfree (*vector++); xfree (*vector++);
@ -61,7 +61,7 @@ void
init_environ (register struct environ *e) init_environ (register struct environ *e)
{ {
extern char **environ; extern char **environ;
register int i; int i;
if (environ == NULL) if (environ == NULL)
return; return;
@ -100,9 +100,9 @@ environ_vector (struct environ *e)
char * char *
get_in_environ (const struct environ *e, const char *var) get_in_environ (const struct environ *e, const char *var)
{ {
register int len = strlen (var); int len = strlen (var);
register char **vector = e->vector; char **vector = e->vector;
register char *s; char *s;
for (; (s = *vector) != NULL; vector++) for (; (s = *vector) != NULL; vector++)
if (STREQN (s, var, len) && s[len] == '=') if (STREQN (s, var, len) && s[len] == '=')
@ -116,10 +116,10 @@ get_in_environ (const struct environ *e, const char *var)
void void
set_in_environ (struct environ *e, const char *var, const char *value) set_in_environ (struct environ *e, const char *var, const char *value)
{ {
register int i; int i;
register int len = strlen (var); int len = strlen (var);
register char **vector = e->vector; char **vector = e->vector;
register char *s; char *s;
for (i = 0; (s = vector[i]) != NULL; i++) for (i = 0; (s = vector[i]) != NULL; i++)
if (STREQN (s, var, len) && s[len] == '=') if (STREQN (s, var, len) && s[len] == '=')
@ -163,9 +163,9 @@ set_in_environ (struct environ *e, const char *var, const char *value)
void void
unset_in_environ (struct environ *e, char *var) unset_in_environ (struct environ *e, char *var)
{ {
register int len = strlen (var); int len = strlen (var);
register char **vector = e->vector; char **vector = e->vector;
register char *s; char *s;
for (; (s = *vector) != NULL; vector++) for (; (s = *vector) != NULL; vector++)
{ {

View file

@ -80,8 +80,8 @@ CORE_ADDR
parse_and_eval_address (char *exp) parse_and_eval_address (char *exp)
{ {
struct expression *expr = parse_expression (exp); struct expression *expr = parse_expression (exp);
register CORE_ADDR addr; CORE_ADDR addr;
register struct cleanup *old_chain = struct cleanup *old_chain =
make_cleanup (free_current_contents, &expr); make_cleanup (free_current_contents, &expr);
addr = value_as_address (evaluate_expression (expr)); addr = value_as_address (evaluate_expression (expr));
@ -96,8 +96,8 @@ CORE_ADDR
parse_and_eval_address_1 (char **expptr) parse_and_eval_address_1 (char **expptr)
{ {
struct expression *expr = parse_exp_1 (expptr, (struct block *) 0, 0); struct expression *expr = parse_exp_1 (expptr, (struct block *) 0, 0);
register CORE_ADDR addr; CORE_ADDR addr;
register struct cleanup *old_chain = struct cleanup *old_chain =
make_cleanup (free_current_contents, &expr); make_cleanup (free_current_contents, &expr);
addr = value_as_address (evaluate_expression (expr)); addr = value_as_address (evaluate_expression (expr));
@ -111,8 +111,8 @@ LONGEST
parse_and_eval_long (char *exp) parse_and_eval_long (char *exp)
{ {
struct expression *expr = parse_expression (exp); struct expression *expr = parse_expression (exp);
register LONGEST retval; LONGEST retval;
register struct cleanup *old_chain = struct cleanup *old_chain =
make_cleanup (free_current_contents, &expr); make_cleanup (free_current_contents, &expr);
retval = value_as_long (evaluate_expression (expr)); retval = value_as_long (evaluate_expression (expr));
@ -125,7 +125,7 @@ parse_and_eval (char *exp)
{ {
struct expression *expr = parse_expression (exp); struct expression *expr = parse_expression (exp);
struct value *val; struct value *val;
register struct cleanup *old_chain = struct cleanup *old_chain =
make_cleanup (free_current_contents, &expr); make_cleanup (free_current_contents, &expr);
val = evaluate_expression (expr); val = evaluate_expression (expr);
@ -142,7 +142,7 @@ parse_to_comma_and_eval (char **expp)
{ {
struct expression *expr = parse_exp_1 (expp, (struct block *) 0, 1); struct expression *expr = parse_exp_1 (expp, (struct block *) 0, 1);
struct value *val; struct value *val;
register struct cleanup *old_chain = struct cleanup *old_chain =
make_cleanup (free_current_contents, &expr); make_cleanup (free_current_contents, &expr);
val = evaluate_expression (expr); val = evaluate_expression (expr);
@ -384,7 +384,7 @@ evaluate_subexp_standard (struct type *expect_type,
{ {
enum exp_opcode op; enum exp_opcode op;
int tem, tem2, tem3; int tem, tem2, tem3;
register int pc, pc2 = 0, oldpos; int pc, pc2 = 0, oldpos;
struct value *arg1 = NULL; struct value *arg1 = NULL;
struct value *arg2 = NULL; struct value *arg2 = NULL;
struct value *arg3; struct value *arg3;
@ -2067,7 +2067,7 @@ evaluate_subexp_for_address (register struct expression *exp, register int *pos,
enum noside noside) enum noside noside)
{ {
enum exp_opcode op; enum exp_opcode op;
register int pc; int pc;
struct symbol *var; struct symbol *var;
pc = (*pos); pc = (*pos);
@ -2146,8 +2146,8 @@ struct value *
evaluate_subexp_with_coercion (register struct expression *exp, evaluate_subexp_with_coercion (register struct expression *exp,
register int *pos, enum noside noside) register int *pos, enum noside noside)
{ {
register enum exp_opcode op; enum exp_opcode op;
register int pc; int pc;
struct value *val; struct value *val;
struct symbol *var; struct symbol *var;
@ -2183,7 +2183,7 @@ static struct value *
evaluate_subexp_for_sizeof (register struct expression *exp, register int *pos) evaluate_subexp_for_sizeof (register struct expression *exp, register int *pos)
{ {
enum exp_opcode op; enum exp_opcode op;
register int pc; int pc;
struct type *type; struct type *type;
struct value *val; struct value *val;

View file

@ -599,7 +599,7 @@ command_line_handler (char *rl)
{ {
static char *linebuffer = 0; static char *linebuffer = 0;
static unsigned linelength = 0; static unsigned linelength = 0;
register char *p; char *p;
char *p1; char *p1;
extern char *line; extern char *line;
extern int linesize; extern int linesize;

View file

@ -59,7 +59,7 @@ void
f_print_type (struct type *type, char *varstring, struct ui_file *stream, f_print_type (struct type *type, char *varstring, struct ui_file *stream,
int show, int level) int show, int level)
{ {
register enum type_code code; enum type_code code;
int demangled_args; int demangled_args;
f_type_print_base (type, stream, show, level); f_type_print_base (type, stream, show, level);

View file

@ -357,7 +357,7 @@ f_val_print (struct type *type, char *valaddr, int embedded_offset,
CORE_ADDR address, struct ui_file *stream, int format, CORE_ADDR address, struct ui_file *stream, int format,
int deref_ref, int recurse, enum val_prettyprint pretty) int deref_ref, int recurse, enum val_prettyprint pretty)
{ {
register unsigned int i = 0; /* Number of characters printed */ unsigned int i = 0; /* Number of characters printed */
struct type *elttype; struct type *elttype;
LONGEST val; LONGEST val;
CORE_ADDR addr; CORE_ADDR addr;
@ -580,7 +580,7 @@ info_common_command (char *comname, int from_tty)
SAVED_F77_COMMON_PTR the_common; SAVED_F77_COMMON_PTR the_common;
COMMON_ENTRY_PTR entry; COMMON_ENTRY_PTR entry;
struct frame_info *fi; struct frame_info *fi;
register char *funname = 0; char *funname = 0;
struct symbol *func; struct symbol *func;
/* We have been told to display the contents of F77 COMMON /* We have been told to display the contents of F77 COMMON
@ -674,7 +674,7 @@ there_is_a_visible_common_named (char *comname)
{ {
SAVED_F77_COMMON_PTR the_common; SAVED_F77_COMMON_PTR the_common;
struct frame_info *fi; struct frame_info *fi;
register char *funname = 0; char *funname = 0;
struct symbol *func; struct symbol *func;
if (comname == NULL) if (comname == NULL)

View file

@ -393,10 +393,10 @@ symbol_read_needs_frame (struct symbol *sym)
struct value * struct value *
read_var_value (register struct symbol *var, struct frame_info *frame) read_var_value (register struct symbol *var, struct frame_info *frame)
{ {
register struct value *v; struct value *v;
struct type *type = SYMBOL_TYPE (var); struct type *type = SYMBOL_TYPE (var);
CORE_ADDR addr; CORE_ADDR addr;
register int len; int len;
v = allocate_value (type); v = allocate_value (type);
VALUE_LVAL (v) = lval_memory; /* The most likely possibility. */ VALUE_LVAL (v) = lval_memory; /* The most likely possibility. */

View file

@ -934,7 +934,7 @@ deprecated_safe_get_selected_frame (void)
void void
select_frame (struct frame_info *fi) select_frame (struct frame_info *fi)
{ {
register struct symtab *s; struct symtab *s;
deprecated_selected_frame = fi; deprecated_selected_frame = fi;
/* NOTE: cagney/2002-05-04: FI can be NULL. This occures when the /* NOTE: cagney/2002-05-04: FI can be NULL. This occures when the

View file

@ -147,7 +147,7 @@ static void virtual_base_list_aux (struct type *dclass);
struct type * struct type *
alloc_type (struct objfile *objfile) alloc_type (struct objfile *objfile)
{ {
register struct type *type; struct type *type;
/* Alloc the structure and start off with all fields zeroed. */ /* Alloc the structure and start off with all fields zeroed. */
@ -228,7 +228,7 @@ smash_type (struct type *type)
struct type * struct type *
make_pointer_type (struct type *type, struct type **typeptr) make_pointer_type (struct type *type, struct type **typeptr)
{ {
register struct type *ntype; /* New type */ struct type *ntype; /* New type */
struct objfile *objfile; struct objfile *objfile;
ntype = TYPE_POINTER_TYPE (type); ntype = TYPE_POINTER_TYPE (type);
@ -295,7 +295,7 @@ lookup_pointer_type (struct type *type)
struct type * struct type *
make_reference_type (struct type *type, struct type **typeptr) make_reference_type (struct type *type, struct type **typeptr)
{ {
register struct type *ntype; /* New type */ struct type *ntype; /* New type */
struct objfile *objfile; struct objfile *objfile;
ntype = TYPE_REFERENCE_TYPE (type); ntype = TYPE_REFERENCE_TYPE (type);
@ -357,7 +357,7 @@ lookup_reference_type (struct type *type)
struct type * struct type *
make_function_type (struct type *type, struct type **typeptr) make_function_type (struct type *type, struct type **typeptr)
{ {
register struct type *ntype; /* New type */ struct type *ntype; /* New type */
struct objfile *objfile; struct objfile *objfile;
if (typeptr == 0 || *typeptr == 0) /* We'll need to allocate one. */ if (typeptr == 0 || *typeptr == 0) /* We'll need to allocate one. */
@ -509,8 +509,8 @@ make_type_with_address_space (struct type *type, int space_flag)
struct type * struct type *
make_cv_type (int cnst, int voltl, struct type *type, struct type **typeptr) make_cv_type (int cnst, int voltl, struct type *type, struct type **typeptr)
{ {
register struct type *ntype; /* New type */ struct type *ntype; /* New type */
register struct type *tmp_type = type; /* tmp type */ struct type *tmp_type = type; /* tmp type */
struct objfile *objfile; struct objfile *objfile;
int new_flags = (TYPE_INSTANCE_FLAGS (type) int new_flags = (TYPE_INSTANCE_FLAGS (type)
@ -593,7 +593,7 @@ replace_type (struct type *ntype, struct type *type)
struct type * struct type *
lookup_member_type (struct type *type, struct type *domain) lookup_member_type (struct type *type, struct type *domain)
{ {
register struct type *mtype; struct type *mtype;
mtype = alloc_type (TYPE_OBJFILE (type)); mtype = alloc_type (TYPE_OBJFILE (type));
smash_to_member_type (mtype, domain, type); smash_to_member_type (mtype, domain, type);
@ -1056,8 +1056,8 @@ lookup_primitive_typename (char *name)
struct type * struct type *
lookup_typename (char *name, struct block *block, int noerr) lookup_typename (char *name, struct block *block, int noerr)
{ {
register struct symbol *sym; struct symbol *sym;
register struct type *tmp; struct type *tmp;
sym = lookup_symbol (name, block, VAR_DOMAIN, 0, (struct symtab **) NULL); sym = lookup_symbol (name, block, VAR_DOMAIN, 0, (struct symtab **) NULL);
if (sym == NULL || SYMBOL_CLASS (sym) != LOC_TYPEDEF) if (sym == NULL || SYMBOL_CLASS (sym) != LOC_TYPEDEF)
@ -1110,7 +1110,7 @@ lookup_signed_typename (char *name)
struct type * struct type *
lookup_struct (char *name, struct block *block) lookup_struct (char *name, struct block *block)
{ {
register struct symbol *sym; struct symbol *sym;
sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0, sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0,
(struct symtab **) NULL); (struct symtab **) NULL);
@ -1132,7 +1132,7 @@ lookup_struct (char *name, struct block *block)
struct type * struct type *
lookup_union (char *name, struct block *block) lookup_union (char *name, struct block *block)
{ {
register struct symbol *sym; struct symbol *sym;
struct type *t; struct type *t;
sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0, sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0,
@ -1164,7 +1164,7 @@ lookup_union (char *name, struct block *block)
struct type * struct type *
lookup_enum (char *name, struct block *block) lookup_enum (char *name, struct block *block)
{ {
register struct symbol *sym; struct symbol *sym;
sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0, sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0,
(struct symtab **) NULL); (struct symtab **) NULL);
@ -1876,7 +1876,7 @@ struct type *
init_type (enum type_code code, int length, int flags, char *name, init_type (enum type_code code, int length, int flags, char *name,
struct objfile *objfile) struct objfile *objfile)
{ {
register struct type *type; struct type *type;
type = alloc_type (objfile); type = alloc_type (objfile);
TYPE_CODE (type) = code; TYPE_CODE (type) = code;
@ -1971,8 +1971,8 @@ append_composite_type_field (struct type *t, char *name, struct type *field)
struct type * struct type *
lookup_fundamental_type (struct objfile *objfile, int typeid) lookup_fundamental_type (struct objfile *objfile, int typeid)
{ {
register struct type **typep; struct type **typep;
register int nbytes; int nbytes;
if (typeid < 0 || typeid >= FT_NUM_MEMBERS) if (typeid < 0 || typeid >= FT_NUM_MEMBERS)
{ {
@ -2066,7 +2066,7 @@ has_vtable (struct type *dclass)
/* In the HP ANSI C++ runtime model, a class has a vtable only if it /* In the HP ANSI C++ runtime model, a class has a vtable only if it
has virtual functions or virtual bases. */ has virtual functions or virtual bases. */
register int i; int i;
if (TYPE_CODE (dclass) != TYPE_CODE_CLASS) if (TYPE_CODE (dclass) != TYPE_CODE_CLASS)
return 0; return 0;
@ -2109,7 +2109,7 @@ primary_base_class (struct type *dclass)
is the first directly inherited, non-virtual base class that is the first directly inherited, non-virtual base class that
requires a virtual table */ requires a virtual table */
register int i; int i;
if (TYPE_CODE (dclass) != TYPE_CODE_CLASS) if (TYPE_CODE (dclass) != TYPE_CODE_CLASS)
return NULL; return NULL;
@ -2138,7 +2138,7 @@ static void
virtual_base_list_aux (struct type *dclass) virtual_base_list_aux (struct type *dclass)
{ {
struct vbase *tmp_vbase; struct vbase *tmp_vbase;
register int i; int i;
if (TYPE_CODE (dclass) != TYPE_CODE_CLASS) if (TYPE_CODE (dclass) != TYPE_CODE_CLASS)
return; return;
@ -2195,9 +2195,9 @@ virtual_base_list_aux (struct type *dclass)
struct type ** struct type **
virtual_base_list (struct type *dclass) virtual_base_list (struct type *dclass)
{ {
register struct vbase *tmp_vbase; struct vbase *tmp_vbase;
register struct vbase *tmp_vbase_2; struct vbase *tmp_vbase_2;
register int i; int i;
int count; int count;
struct type **vbase_array; struct type **vbase_array;
@ -2232,8 +2232,8 @@ virtual_base_list (struct type *dclass)
int int
virtual_base_list_length (struct type *dclass) virtual_base_list_length (struct type *dclass)
{ {
register int i; int i;
register struct vbase *tmp_vbase; struct vbase *tmp_vbase;
current_vbase_list = NULL; current_vbase_list = NULL;
virtual_base_list_aux (dclass); virtual_base_list_aux (dclass);
@ -2250,8 +2250,8 @@ virtual_base_list_length (struct type *dclass)
int int
virtual_base_list_length_skip_primaries (struct type *dclass) virtual_base_list_length_skip_primaries (struct type *dclass)
{ {
register int i; int i;
register struct vbase *tmp_vbase; struct vbase *tmp_vbase;
struct type *primary; struct type *primary;
primary = TYPE_RUNTIME_PTR (dclass) ? TYPE_PRIMARY_BASE (dclass) : NULL; primary = TYPE_RUNTIME_PTR (dclass) ? TYPE_PRIMARY_BASE (dclass) : NULL;
@ -2279,8 +2279,8 @@ virtual_base_list_length_skip_primaries (struct type *dclass)
int int
virtual_base_index (struct type *base, struct type *dclass) virtual_base_index (struct type *base, struct type *dclass)
{ {
register struct type *vbase; struct type *vbase;
register int i; int i;
if ((TYPE_CODE (dclass) != TYPE_CODE_CLASS) || if ((TYPE_CODE (dclass) != TYPE_CODE_CLASS) ||
(TYPE_CODE (base) != TYPE_CODE_CLASS)) (TYPE_CODE (base) != TYPE_CODE_CLASS))
@ -2309,8 +2309,8 @@ virtual_base_index (struct type *base, struct type *dclass)
int int
virtual_base_index_skip_primaries (struct type *base, struct type *dclass) virtual_base_index_skip_primaries (struct type *base, struct type *dclass)
{ {
register struct type *vbase; struct type *vbase;
register int i, j; int i, j;
struct type *primary; struct type *primary;
if ((TYPE_CODE (dclass) != TYPE_CODE_CLASS) || if ((TYPE_CODE (dclass) != TYPE_CODE_CLASS) ||

View file

@ -325,7 +325,7 @@ h8300_examine_prologue (register CORE_ADDR ip, register CORE_ADDR limit,
CORE_ADDR after_prolog_fp, CORE_ADDR *fsr, CORE_ADDR after_prolog_fp, CORE_ADDR *fsr,
struct frame_info *fi) struct frame_info *fi)
{ {
register CORE_ADDR next_ip; CORE_ADDR next_ip;
int r; int r;
int have_fp = 0; int have_fp = 0;
unsigned short insn_word; unsigned short insn_word;

View file

@ -1588,7 +1588,7 @@ void
hppa_push_dummy_frame (void) hppa_push_dummy_frame (void)
{ {
CORE_ADDR sp, pc, pcspace; CORE_ADDR sp, pc, pcspace;
register int regnum; int regnum;
CORE_ADDR int_buffer; CORE_ADDR int_buffer;
double freg_buffer; double freg_buffer;
@ -1690,9 +1690,9 @@ find_dummy_frame_regs (struct frame_info *frame,
void void
hppa_pop_frame (void) hppa_pop_frame (void)
{ {
register struct frame_info *frame = get_current_frame (); struct frame_info *frame = get_current_frame ();
register CORE_ADDR fp, npc, target_pc; CORE_ADDR fp, npc, target_pc;
register int regnum; int regnum;
CORE_ADDR *fsr; CORE_ADDR *fsr;
double freg_buffer; double freg_buffer;
@ -2070,7 +2070,7 @@ hppa_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
struct value * struct value *
hppa_value_returned_from_stack (register struct type *valtype, CORE_ADDR addr) hppa_value_returned_from_stack (register struct type *valtype, CORE_ADDR addr)
{ {
register struct value *val; struct value *val;
val = allocate_value (valtype); val = allocate_value (valtype);
CHECK_TYPEDEF (valtype); CHECK_TYPEDEF (valtype);
@ -2770,7 +2770,7 @@ pa_register_look_aside (char *raw_regs, int regnum, long *raw_val)
int regaddr; int regaddr;
unsigned int offset; unsigned int offset;
register int i; int i;
int start; int start;

View file

@ -54,9 +54,9 @@
static void static void
fetch_register (int regno) fetch_register (int regno)
{ {
register unsigned int regaddr; unsigned int regaddr;
char buf[MAX_REGISTER_SIZE]; char buf[MAX_REGISTER_SIZE];
register int i; int i;
/* Offset of registers within the u area. */ /* Offset of registers within the u area. */
unsigned int offset; unsigned int offset;
@ -104,9 +104,9 @@ fetch_inferior_registers (int regno)
void void
store_inferior_registers (int regno) store_inferior_registers (int regno)
{ {
register unsigned int regaddr; unsigned int regaddr;
char buf[80]; char buf[80];
register int i; int i;
unsigned int offset = U_REGS_OFFSET; unsigned int offset = U_REGS_OFFSET;
int scratch; int scratch;

View file

@ -64,9 +64,9 @@ fetch_inferior_registers (int regno)
void void
store_inferior_registers (int regno) store_inferior_registers (int regno)
{ {
register unsigned int regaddr; unsigned int regaddr;
char buf[80]; char buf[80];
register int i; int i;
unsigned int offset = U_REGS_OFFSET; unsigned int offset = U_REGS_OFFSET;
int scratch; int scratch;
@ -282,11 +282,11 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
struct mem_attrib *mem, struct mem_attrib *mem,
struct target_ops *target) struct target_ops *target)
{ {
register int i; int i;
/* Round starting address down to longword boundary. */ /* Round starting address down to longword boundary. */
register CORE_ADDR addr = memaddr & - (CORE_ADDR)(sizeof (int)); CORE_ADDR addr = memaddr & - (CORE_ADDR)(sizeof (int));
/* Round ending address up; get number of longwords that makes. */ /* Round ending address up; get number of longwords that makes. */
register int count int count
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
/* Allocate buffer of that many longwords. /* Allocate buffer of that many longwords.
@ -297,7 +297,7 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
this (in effect) would pile up all those alloca requests until a call this (in effect) would pile up all those alloca requests until a call
to alloca was made from a point higher than this routine in the to alloca was made from a point higher than this routine in the
call chain. */ call chain. */
register int *buffer = (int *) xmalloc (count * sizeof (int)); int *buffer = (int *) xmalloc (count * sizeof (int));
if (write) if (write)
{ {

View file

@ -81,7 +81,7 @@ store_inferior_registers (int regno)
kern_return_t ret; kern_return_t ret;
thread_state_data_t state; thread_state_data_t state;
unsigned int stateCnt = TRACE_FLAVOR_SIZE; unsigned int stateCnt = TRACE_FLAVOR_SIZE;
register int index; int index;
if (!MACH_PORT_VALID (current_thread)) if (!MACH_PORT_VALID (current_thread))
error ("store inferior registers: Invalid thread"); error ("store inferior registers: Invalid thread");

View file

@ -6203,9 +6203,9 @@ static int
hpread_get_scope_depth (union dnttentry *dn_bufp, struct objfile *objfile, hpread_get_scope_depth (union dnttentry *dn_bufp, struct objfile *objfile,
int report_nested) int report_nested)
{ {
register int index; int index;
register union dnttentry *dn_tmp; union dnttentry *dn_tmp;
register short depth = 0; short depth = 0;
/****************************/ /****************************/
return 0; return 0;
/****************************/ /****************************/
@ -6248,7 +6248,7 @@ hpread_get_scope_depth (union dnttentry *dn_bufp, struct objfile *objfile,
static void static void
hpread_adjust_bitoffsets (struct type *type, int bits) hpread_adjust_bitoffsets (struct type *type, int bits)
{ {
register int i; int i;
/* This is done only for unions; caller had better check that /* This is done only for unions; caller had better check that
it is an anonymous one. */ it is an anonymous one. */
@ -6285,7 +6285,7 @@ hpread_get_next_skip_over_anon_unions (int skip_fields, dnttpointer field,
struct objfile *objfile) struct objfile *objfile)
{ {
struct type *anon_type; struct type *anon_type;
register int i; int i;
int bitoffset; int bitoffset;
char *name; char *name;

View file

@ -135,7 +135,7 @@ fill_gregset (prgregset_t *gregsetp, int regno)
void void
supply_fpregset (prfpregset_t *fpregsetp) supply_fpregset (prfpregset_t *fpregsetp)
{ {
register int regi; int regi;
for (regi = IA64_FR0_REGNUM; regi <= IA64_FR127_REGNUM; regi++) for (regi = IA64_FR0_REGNUM; regi <= IA64_FR127_REGNUM; regi++)
supply_register (regi, supply_register (regi,

View file

@ -441,7 +441,7 @@ fill_gregset (gregset_t *gregsetp, int regno)
void void
supply_fpregset (fpregset_t *fpregsetp) supply_fpregset (fpregset_t *fpregsetp)
{ {
register int regi; int regi;
char *from; char *from;
for (regi = IA64_FR0_REGNUM; regi <= IA64_FR127_REGNUM; regi++) for (regi = IA64_FR0_REGNUM; regi <= IA64_FR127_REGNUM; regi++)

View file

@ -84,8 +84,8 @@ static struct value *
value_arg_coerce (struct value *arg, struct type *param_type, value_arg_coerce (struct value *arg, struct type *param_type,
int is_prototyped) int is_prototyped)
{ {
register struct type *arg_type = check_typedef (VALUE_TYPE (arg)); struct type *arg_type = check_typedef (VALUE_TYPE (arg));
register struct type *type struct type *type
= param_type ? check_typedef (param_type) : arg_type; = param_type ? check_typedef (param_type) : arg_type;
switch (TYPE_CODE (type)) switch (TYPE_CODE (type))
@ -161,8 +161,8 @@ value_arg_coerce (struct value *arg, struct type *param_type,
CORE_ADDR CORE_ADDR
find_function_addr (struct value *function, struct type **retval_type) find_function_addr (struct value *function, struct type **retval_type)
{ {
register struct type *ftype = check_typedef (VALUE_TYPE (function)); struct type *ftype = check_typedef (VALUE_TYPE (function));
register enum type_code code = TYPE_CODE (ftype); enum type_code code = TYPE_CODE (ftype);
struct type *value_type; struct type *value_type;
CORE_ADDR funaddr; CORE_ADDR funaddr;
@ -375,7 +375,7 @@ push_dummy_code (struct gdbarch *gdbarch,
struct value * struct value *
call_function_by_hand (struct value *function, int nargs, struct value **args) call_function_by_hand (struct value *function, int nargs, struct value **args)
{ {
register CORE_ADDR sp; CORE_ADDR sp;
CORE_ADDR dummy_addr; CORE_ADDR dummy_addr;
struct type *value_type; struct type *value_type;
unsigned char struct_return; unsigned char struct_return;

View file

@ -584,7 +584,7 @@ disable_longjmp_breakpoint_cleanup (void *ignore)
static void static void
step_1 (int skip_subroutines, int single_inst, char *count_string) step_1 (int skip_subroutines, int single_inst, char *count_string)
{ {
register int count = 1; int count = 1;
struct frame_info *frame; struct frame_info *frame;
struct cleanup *cleanups = 0; struct cleanup *cleanups = 0;
int async_exec = 0; int async_exec = 0;
@ -806,7 +806,7 @@ which has no line number information.\n", name);
static void static void
jump_command (char *arg, int from_tty) jump_command (char *arg, int from_tty)
{ {
register CORE_ADDR addr; CORE_ADDR addr;
struct symtabs_and_lines sals; struct symtabs_and_lines sals;
struct symtab_and_line sal; struct symtab_and_line sal;
struct symbol *fn; struct symbol *fn;
@ -1121,7 +1121,7 @@ print_return_value (int structure_return, struct type *value_type)
void void
finish_command_continuation (struct continuation_arg *arg) finish_command_continuation (struct continuation_arg *arg)
{ {
register struct symbol *function; struct symbol *function;
struct breakpoint *breakpoint; struct breakpoint *breakpoint;
struct cleanup *cleanups; struct cleanup *cleanups;
@ -1164,8 +1164,8 @@ static void
finish_command (char *arg, int from_tty) finish_command (char *arg, int from_tty)
{ {
struct symtab_and_line sal; struct symtab_and_line sal;
register struct frame_info *frame; struct frame_info *frame;
register struct symbol *function; struct symbol *function;
struct breakpoint *breakpoint; struct breakpoint *breakpoint;
struct cleanup *old_chain; struct cleanup *old_chain;
struct continuation_arg *arg1, *arg2, *arg3; struct continuation_arg *arg1, *arg2, *arg3;
@ -1366,7 +1366,7 @@ environment_info (char *var, int from_tty)
static void static void
set_environment_command (char *arg, int from_tty) set_environment_command (char *arg, int from_tty)
{ {
register char *p, *val, *var; char *p, *val, *var;
int nullset = 0; int nullset = 0;
if (arg == 0) if (arg == 0)
@ -1604,7 +1604,7 @@ void
registers_info (char *addr_exp, int fpregs) registers_info (char *addr_exp, int fpregs)
{ {
int regnum, numregs; int regnum, numregs;
register char *end; char *end;
if (!target_has_registers) if (!target_has_registers)
error ("The program has no registers now."); error ("The program has no registers now.");

View file

@ -515,7 +515,7 @@ new_tty_prefork (char *ttyname)
void void
new_tty (void) new_tty (void)
{ {
register int tty; int tty;
if (inferior_thisrun_terminal == 0) if (inferior_thisrun_terminal == 0)
return; return;

View file

@ -359,7 +359,7 @@ fetch_register (int regno)
/* This isn't really an address. But ptrace thinks of it as one. */ /* This isn't really an address. But ptrace thinks of it as one. */
CORE_ADDR regaddr; CORE_ADDR regaddr;
char mess[128]; /* For messages */ char mess[128]; /* For messages */
register int i; int i;
unsigned int offset; /* Offset of registers within the u area. */ unsigned int offset; /* Offset of registers within the u area. */
char buf[MAX_REGISTER_SIZE]; char buf[MAX_REGISTER_SIZE];
int tid; int tid;
@ -423,7 +423,7 @@ store_register (int regno)
/* This isn't really an address. But ptrace thinks of it as one. */ /* This isn't really an address. But ptrace thinks of it as one. */
CORE_ADDR regaddr; CORE_ADDR regaddr;
char mess[128]; /* For messages */ char mess[128]; /* For messages */
register int i; int i;
unsigned int offset; /* Offset of registers within the u area. */ unsigned int offset; /* Offset of registers within the u area. */
int tid; int tid;
char buf[MAX_REGISTER_SIZE]; char buf[MAX_REGISTER_SIZE];

View file

@ -3915,8 +3915,8 @@ build_infrun (void)
void void
_initialize_infrun (void) _initialize_infrun (void)
{ {
register int i; int i;
register int numsigs; int numsigs;
struct cmd_list_element *c; struct cmd_list_element *c;
register_gdbarch_swap (&stop_registers, sizeof (stop_registers), NULL); register_gdbarch_swap (&stop_registers, sizeof (stop_registers), NULL);

View file

@ -4836,18 +4836,18 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
struct mem_attrib *attrib, struct mem_attrib *attrib,
struct target_ops *target) struct target_ops *target)
{ {
register int i; int i;
/* Round starting address down to longword boundary. */ /* Round starting address down to longword boundary. */
register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (TTRACE_XFER_TYPE); CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (TTRACE_XFER_TYPE);
/* Round ending address up; get number of longwords that makes. */ /* Round ending address up; get number of longwords that makes. */
register int count int count
= (((memaddr + len) - addr) + sizeof (TTRACE_XFER_TYPE) - 1) = (((memaddr + len) - addr) + sizeof (TTRACE_XFER_TYPE) - 1)
/ sizeof (TTRACE_XFER_TYPE); / sizeof (TTRACE_XFER_TYPE);
/* Allocate buffer of that many longwords. */ /* Allocate buffer of that many longwords. */
/* FIXME (alloca): This code, cloned from infptrace.c, is unsafe /* FIXME (alloca): This code, cloned from infptrace.c, is unsafe
because it uses alloca to allocate a buffer of arbitrary size. because it uses alloca to allocate a buffer of arbitrary size.
For very large xfers, this could crash GDB's stack. */ For very large xfers, this could crash GDB's stack. */
register TTRACE_XFER_TYPE *buffer TTRACE_XFER_TYPE *buffer
= (TTRACE_XFER_TYPE *) alloca (count * sizeof (TTRACE_XFER_TYPE)); = (TTRACE_XFER_TYPE *) alloca (count * sizeof (TTRACE_XFER_TYPE));
if (write) if (write)

View file

@ -53,8 +53,8 @@ static void fetch_core_registers (char *, unsigned int, int, CORE_ADDR);
void void
supply_gregset (gregset_t *gregsetp) supply_gregset (gregset_t *gregsetp)
{ {
register int regi; int regi;
register greg_t *regp = &(*gregsetp)[0]; greg_t *regp = &(*gregsetp)[0];
int gregoff = sizeof (greg_t) - MIPS_REGSIZE; int gregoff = sizeof (greg_t) - MIPS_REGSIZE;
static char zerobuf[32] = {0}; static char zerobuf[32] = {0};
@ -74,7 +74,7 @@ void
fill_gregset (gregset_t *gregsetp, int regno) fill_gregset (gregset_t *gregsetp, int regno)
{ {
int regi; int regi;
register greg_t *regp = &(*gregsetp)[0]; greg_t *regp = &(*gregsetp)[0];
/* Under Irix6, if GDB is built with N32 ABI and is debugging an O32 /* Under Irix6, if GDB is built with N32 ABI and is debugging an O32
executable, we have to sign extend the registers to 64 bits before executable, we have to sign extend the registers to 64 bits before
@ -118,7 +118,7 @@ fill_gregset (gregset_t *gregsetp, int regno)
void void
supply_fpregset (fpregset_t *fpregsetp) supply_fpregset (fpregset_t *fpregsetp)
{ {
register int regi; int regi;
static char zerobuf[32] = {0}; static char zerobuf[32] = {0};
/* FIXME, this is wrong for the N32 ABI which has 64 bit FP regs. */ /* FIXME, this is wrong for the N32 ABI which has 64 bit FP regs. */

View file

@ -86,8 +86,8 @@ static void
java_type_print_base (struct type *type, struct ui_file *stream, int show, java_type_print_base (struct type *type, struct ui_file *stream, int show,
int level) int level)
{ {
register int i; int i;
register int len; int len;
char *mangled_name; char *mangled_name;
char *demangled_name; char *demangled_name;
QUIT; QUIT;

View file

@ -457,7 +457,7 @@ java_val_print (struct type *type, char *valaddr, int embedded_offset,
CORE_ADDR address, struct ui_file *stream, int format, CORE_ADDR address, struct ui_file *stream, int format,
int deref_ref, int recurse, enum val_prettyprint pretty) int deref_ref, int recurse, enum val_prettyprint pretty)
{ {
register unsigned int i = 0; /* Number of characters printed */ unsigned int i = 0; /* Number of characters printed */
struct type *target_type; struct type *target_type;
CORE_ADDR addr; CORE_ADDR addr;

View file

@ -948,8 +948,8 @@ m68k_unwind_dummy_id (struct gdbarch *gdbarch, struct frame_info *next_frame)
void void
supply_gregset (gregset_t *gregsetp) supply_gregset (gregset_t *gregsetp)
{ {
register int regi; int regi;
register greg_t *regp = (greg_t *) gregsetp; greg_t *regp = (greg_t *) gregsetp;
for (regi = 0; regi < R_PC; regi++) for (regi = 0; regi < R_PC; regi++)
{ {
@ -962,8 +962,8 @@ supply_gregset (gregset_t *gregsetp)
void void
fill_gregset (gregset_t *gregsetp, int regno) fill_gregset (gregset_t *gregsetp, int regno)
{ {
register int regi; int regi;
register greg_t *regp = (greg_t *) gregsetp; greg_t *regp = (greg_t *) gregsetp;
for (regi = 0; regi < R_PC; regi++) for (regi = 0; regi < R_PC; regi++)
{ {
@ -985,7 +985,7 @@ fill_gregset (gregset_t *gregsetp, int regno)
void void
supply_fpregset (fpregset_t *fpregsetp) supply_fpregset (fpregset_t *fpregsetp)
{ {
register int regi; int regi;
char *from; char *from;
for (regi = FP0_REGNUM; regi < M68K_FPC_REGNUM; regi++) for (regi = FP0_REGNUM; regi < M68K_FPC_REGNUM; regi++)

View file

@ -133,7 +133,7 @@ fetch_register (int regno)
/* This isn't really an address. But ptrace thinks of it as one. */ /* This isn't really an address. But ptrace thinks of it as one. */
CORE_ADDR regaddr; CORE_ADDR regaddr;
char mess[128]; /* For messages */ char mess[128]; /* For messages */
register int i; int i;
unsigned int offset; /* Offset of registers within the u area. */ unsigned int offset; /* Offset of registers within the u area. */
char buf[MAX_REGISTER_SIZE]; char buf[MAX_REGISTER_SIZE];
int tid; int tid;
@ -198,7 +198,7 @@ store_register (int regno)
/* This isn't really an address. But ptrace thinks of it as one. */ /* This isn't really an address. But ptrace thinks of it as one. */
CORE_ADDR regaddr; CORE_ADDR regaddr;
char mess[128]; /* For messages */ char mess[128]; /* For messages */
register int i; int i;
unsigned int offset; /* Offset of registers within the u area. */ unsigned int offset; /* Offset of registers within the u area. */
int tid; int tid;
char buf[MAX_REGISTER_SIZE]; char buf[MAX_REGISTER_SIZE];

View file

@ -150,7 +150,7 @@ captured_main (void *data)
struct stat homebuf, cwdbuf; struct stat homebuf, cwdbuf;
char *homedir, *homeinit; char *homedir, *homeinit;
register int i; int i;
long time_at_startup = get_run_time (); long time_at_startup = get_run_time ();

View file

@ -373,7 +373,7 @@ static FDR *
get_rfd (int cf, int rf) get_rfd (int cf, int rf)
{ {
FDR *fdrs; FDR *fdrs;
register FDR *f; FDR *f;
RFDT rfd; RFDT rfd;
fdrs = debug_info->fdr; fdrs = debug_info->fdr;
@ -558,7 +558,7 @@ static struct mdebug_pending *
is_pending_symbol (FDR *fh, char *sh) is_pending_symbol (FDR *fh, char *sh)
{ {
int f_idx = fh - debug_info->fdr; int f_idx = fh - debug_info->fdr;
register struct mdebug_pending *p; struct mdebug_pending *p;
/* Linear search is ok, list is typically no more than 10 deep */ /* Linear search is ok, list is typically no more than 10 deep */
for (p = pending_list[f_idx]; p; p = p->next) for (p = pending_list[f_idx]; p; p = p->next)
@ -2228,7 +2228,7 @@ parse_partial_symbols (struct objfile *objfile)
char *ext_out; char *ext_out;
char *ext_out_end; char *ext_out_end;
EXTR *ext_block; EXTR *ext_block;
register EXTR *ext_in; EXTR *ext_in;
EXTR *ext_in_end; EXTR *ext_in_end;
SYMR sh; SYMR sh;
struct partial_symtab *pst; struct partial_symtab *pst;
@ -4527,7 +4527,7 @@ add_line (struct linetable *lt, int lineno, CORE_ADDR adr, int last)
static int static int
compare_blocks (const void *arg1, const void *arg2) compare_blocks (const void *arg1, const void *arg2)
{ {
register int addr_diff; int addr_diff;
struct block **b1 = (struct block **) arg1; struct block **b1 = (struct block **) arg1;
struct block **b2 = (struct block **) arg2; struct block **b2 = (struct block **) arg2;

View file

@ -599,8 +599,8 @@ prim_record_minimal_symbol_and_info (const char *name, CORE_ADDR address,
asection *bfd_section, asection *bfd_section,
struct objfile *objfile) struct objfile *objfile)
{ {
register struct msym_bunch *new; struct msym_bunch *new;
register struct minimal_symbol *msymbol; struct minimal_symbol *msymbol;
if (ms_type == mst_file_text) if (ms_type == mst_file_text)
{ {
@ -661,8 +661,8 @@ prim_record_minimal_symbol_and_info (const char *name, CORE_ADDR address,
static int static int
compare_minimal_symbols (const void *fn1p, const void *fn2p) compare_minimal_symbols (const void *fn1p, const void *fn2p)
{ {
register const struct minimal_symbol *fn1; const struct minimal_symbol *fn1;
register const struct minimal_symbol *fn2; const struct minimal_symbol *fn2;
fn1 = (const struct minimal_symbol *) fn1p; fn1 = (const struct minimal_symbol *) fn1p;
fn2 = (const struct minimal_symbol *) fn2p; fn2 = (const struct minimal_symbol *) fn2p;
@ -703,7 +703,7 @@ compare_minimal_symbols (const void *fn1p, const void *fn2p)
static void static void
do_discard_minimal_symbols_cleanup (void *arg) do_discard_minimal_symbols_cleanup (void *arg)
{ {
register struct msym_bunch *next; struct msym_bunch *next;
while (msym_bunch != NULL) while (msym_bunch != NULL)
{ {
@ -847,12 +847,12 @@ build_minimal_symbol_hash_tables (struct objfile *objfile)
void void
install_minimal_symbols (struct objfile *objfile) install_minimal_symbols (struct objfile *objfile)
{ {
register int bindex; int bindex;
register int mcount; int mcount;
register struct msym_bunch *bunch; struct msym_bunch *bunch;
register struct minimal_symbol *msymbols; struct minimal_symbol *msymbols;
int alloc_count; int alloc_count;
register char leading_char; char leading_char;
if (msym_count > 0) if (msym_count > 0)
{ {

View file

@ -191,7 +191,7 @@ fill_gregset (elf_gregset_t *gregsetp, int regno)
void void
supply_fpregset (elf_fpregset_t *fpregsetp) supply_fpregset (elf_fpregset_t *fpregsetp)
{ {
register int regi; int regi;
char zerobuf[MAX_REGISTER_SIZE]; char zerobuf[MAX_REGISTER_SIZE];
memset (zerobuf, 0, MAX_REGISTER_SIZE); memset (zerobuf, 0, MAX_REGISTER_SIZE);
@ -466,7 +466,7 @@ mips64_fill_gregset (mips64_elf_gregset_t *gregsetp, int regno)
static void static void
mips64_supply_fpregset (mips64_elf_fpregset_t *fpregsetp) mips64_supply_fpregset (mips64_elf_fpregset_t *fpregsetp)
{ {
register int regi; int regi;
char zerobuf[MAX_REGISTER_SIZE]; char zerobuf[MAX_REGISTER_SIZE];
memset (zerobuf, 0, MAX_REGISTER_SIZE); memset (zerobuf, 0, MAX_REGISTER_SIZE);

View file

@ -72,9 +72,9 @@ static void fetch_core_registers (char *, unsigned, int, CORE_ADDR);
void void
fetch_inferior_registers (int regno) fetch_inferior_registers (int regno)
{ {
register unsigned int regaddr; unsigned int regaddr;
char buf[MAX_REGISTER_SIZE]; char buf[MAX_REGISTER_SIZE];
register int i; int i;
char zerobuf[MAX_REGISTER_SIZE]; char zerobuf[MAX_REGISTER_SIZE];
memset (zerobuf, 0, MAX_REGISTER_SIZE); memset (zerobuf, 0, MAX_REGISTER_SIZE);
@ -104,7 +104,7 @@ fetch_inferior_registers (int regno)
void void
store_inferior_registers (int regno) store_inferior_registers (int regno)
{ {
register unsigned int regaddr; unsigned int regaddr;
char buf[80]; char buf[80];
if (regno > 0) if (regno > 0)
@ -172,10 +172,10 @@ static void
fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which, fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
CORE_ADDR reg_addr) CORE_ADDR reg_addr)
{ {
register int regno; int regno;
register unsigned int addr; unsigned int addr;
int bad_reg = -1; int bad_reg = -1;
register reg_ptr = -reg_addr; /* Original u.u_ar0 is -reg_addr. */ reg_ptr = -reg_addr; /* Original u.u_ar0 is -reg_addr. */
char zerobuf[MAX_REGISTER_SIZE]; char zerobuf[MAX_REGISTER_SIZE];
memset (zerobuf, 0, MAX_REGISTER_SIZE); memset (zerobuf, 0, MAX_REGISTER_SIZE);

View file

@ -3946,7 +3946,7 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr,
static void static void
mips_pop_frame (void) mips_pop_frame (void)
{ {
register int regnum; int regnum;
struct frame_info *frame = get_current_frame (); struct frame_info *frame = get_current_frame ();
CORE_ADDR new_sp = get_frame_base (frame); CORE_ADDR new_sp = get_frame_base (frame);
mips_extra_func_info_t proc_desc; mips_extra_func_info_t proc_desc;

View file

@ -193,7 +193,7 @@ struct alphacoff_dynsecinfo
static void static void
alphacoff_locate_sections (bfd *ignore_abfd, asection *sectp, void *sip) alphacoff_locate_sections (bfd *ignore_abfd, asection *sectp, void *sip)
{ {
register struct alphacoff_dynsecinfo *si; struct alphacoff_dynsecinfo *si;
si = (struct alphacoff_dynsecinfo *) sip; si = (struct alphacoff_dynsecinfo *) sip;

View file

@ -45,8 +45,8 @@
void void
supply_gregset (gregset_t *gregsetp) supply_gregset (gregset_t *gregsetp)
{ {
register int regi; int regi;
register greg_t *regp = &(*gregsetp)[0]; greg_t *regp = &(*gregsetp)[0];
char zerobuf[MAX_REGISTER_SIZE]; char zerobuf[MAX_REGISTER_SIZE];
memset (zerobuf, 0, MAX_REGISTER_SIZE); memset (zerobuf, 0, MAX_REGISTER_SIZE);
@ -71,7 +71,7 @@ void
fill_gregset (gregset_t *gregsetp, int regno) fill_gregset (gregset_t *gregsetp, int regno)
{ {
int regi; int regi;
register greg_t *regp = &(*gregsetp)[0]; greg_t *regp = &(*gregsetp)[0];
for (regi = 0; regi <= 32; regi++) for (regi = 0; regi <= 32; regi++)
if ((regno == -1) || (regno == regi)) if ((regno == -1) || (regno == regi))
@ -101,7 +101,7 @@ fill_gregset (gregset_t *gregsetp, int regno)
void void
supply_fpregset (fpregset_t *fpregsetp) supply_fpregset (fpregset_t *fpregsetp)
{ {
register int regi; int regi;
char zerobuf[MAX_REGISTER_SIZE]; char zerobuf[MAX_REGISTER_SIZE];
memset (zerobuf, 0, MAX_REGISTER_SIZE); memset (zerobuf, 0, MAX_REGISTER_SIZE);

View file

@ -147,7 +147,7 @@ ns32k_saved_pc_after_call (struct frame_info *frame)
static CORE_ADDR static CORE_ADDR
umax_skip_prologue (CORE_ADDR pc) umax_skip_prologue (CORE_ADDR pc)
{ {
register unsigned char op = read_memory_integer (pc, 1); unsigned char op = read_memory_integer (pc, 1);
if (op == 0x82) if (op == 0x82)
{ {
op = read_memory_integer (pc + 2, 1); op = read_memory_integer (pc + 2, 1);

View file

@ -1098,7 +1098,7 @@ in_plt_section (CORE_ADDR pc, char *name)
int int
is_in_import_list (char *name, struct objfile *objfile) is_in_import_list (char *name, struct objfile *objfile)
{ {
register int i; int i;
if (!objfile || !name || !*name) if (!objfile || !name || !*name)
return 0; return 0;

View file

@ -50,7 +50,7 @@ void
pascal_print_type (struct type *type, char *varstring, struct ui_file *stream, pascal_print_type (struct type *type, char *varstring, struct ui_file *stream,
int show, int level) int show, int level)
{ {
register enum type_code code; enum type_code code;
int demangled_args; int demangled_args;
code = TYPE_CODE (type); code = TYPE_CODE (type);
@ -440,9 +440,9 @@ void
pascal_type_print_base (struct type *type, struct ui_file *stream, int show, pascal_type_print_base (struct type *type, struct ui_file *stream, int show,
int level) int level)
{ {
register int i; int i;
register int len; int len;
register int lastval; int lastval;
enum enum
{ {
s_none, s_public, s_private, s_protected s_none, s_public, s_private, s_protected

View file

@ -60,7 +60,7 @@ pascal_val_print (struct type *type, char *valaddr, int embedded_offset,
CORE_ADDR address, struct ui_file *stream, int format, CORE_ADDR address, struct ui_file *stream, int format,
int deref_ref, int recurse, enum val_prettyprint pretty) int deref_ref, int recurse, enum val_prettyprint pretty)
{ {
register unsigned int i = 0; /* Number of characters printed */ unsigned int i = 0; /* Number of characters printed */
unsigned len; unsigned len;
struct type *elttype; struct type *elttype;
unsigned eltlen; unsigned eltlen;
@ -1055,7 +1055,7 @@ pascal_object_print_class_member (char *valaddr, struct type *domain,
print it. */ print it. */
int extra = 0; int extra = 0;
int bits = 0; int bits = 0;
register unsigned int i; unsigned int i;
unsigned len = TYPE_NFIELDS (domain); unsigned len = TYPE_NFIELDS (domain);
/* @@ Make VAL into bit offset */ /* @@ Make VAL into bit offset */
LONGEST val = unpack_long (builtin_type_int, valaddr) << 3; LONGEST val = unpack_long (builtin_type_int, valaddr) << 3;

View file

@ -207,7 +207,7 @@ fetch_register (int tid, int regno)
{ {
/* This isn't really an address. But ptrace thinks of it as one. */ /* This isn't really an address. But ptrace thinks of it as one. */
char mess[128]; /* For messages */ char mess[128]; /* For messages */
register int i; int i;
unsigned int offset; /* Offset of registers within the u area. */ unsigned int offset; /* Offset of registers within the u area. */
char buf[MAX_REGISTER_SIZE]; char buf[MAX_REGISTER_SIZE];
CORE_ADDR regaddr = ppc_register_u_addr (regno); CORE_ADDR regaddr = ppc_register_u_addr (regno);
@ -367,7 +367,7 @@ store_register (int tid, int regno)
/* This isn't really an address. But ptrace thinks of it as one. */ /* This isn't really an address. But ptrace thinks of it as one. */
CORE_ADDR regaddr = ppc_register_u_addr (regno); CORE_ADDR regaddr = ppc_register_u_addr (regno);
char mess[128]; /* For messages */ char mess[128]; /* For messages */
register int i; int i;
unsigned int offset; /* Offset of registers within the u area. */ unsigned int offset; /* Offset of registers within the u area. */
char buf[MAX_REGISTER_SIZE]; char buf[MAX_REGISTER_SIZE];

View file

@ -190,7 +190,7 @@ static struct format_data
decode_format (char **string_ptr, int oformat, int osize) decode_format (char **string_ptr, int oformat, int osize)
{ {
struct format_data val; struct format_data val;
register char *p = *string_ptr; char *p = *string_ptr;
val.format = '?'; val.format = '?';
val.size = '?'; val.size = '?';
@ -773,12 +773,12 @@ static struct type *examine_g_type;
static void static void
do_examine (struct format_data fmt, CORE_ADDR addr, asection *sect) do_examine (struct format_data fmt, CORE_ADDR addr, asection *sect)
{ {
register char format = 0; char format = 0;
register char size; char size;
register int count = 1; int count = 1;
struct type *val_type = NULL; struct type *val_type = NULL;
register int i; int i;
register int maxelts; int maxelts;
format = fmt.format; format = fmt.format;
size = fmt.size; size = fmt.size;
@ -873,8 +873,8 @@ static void
print_command_1 (char *exp, int inspect, int voidprint) print_command_1 (char *exp, int inspect, int voidprint)
{ {
struct expression *expr; struct expression *expr;
register struct cleanup *old_chain = 0; struct cleanup *old_chain = 0;
register char format = 0; char format = 0;
struct value *val; struct value *val;
struct format_data fmt; struct format_data fmt;
int cleanup = 0; int cleanup = 0;
@ -972,8 +972,8 @@ void
output_command (char *exp, int from_tty) output_command (char *exp, int from_tty)
{ {
struct expression *expr; struct expression *expr;
register struct cleanup *old_chain; struct cleanup *old_chain;
register char format = 0; char format = 0;
struct value *val; struct value *val;
struct format_data fmt; struct format_data fmt;
@ -1007,7 +1007,7 @@ static void
set_command (char *exp, int from_tty) set_command (char *exp, int from_tty)
{ {
struct expression *expr = parse_expression (exp); struct expression *expr = parse_expression (exp);
register struct cleanup *old_chain = struct cleanup *old_chain =
make_cleanup (free_current_contents, &expr); make_cleanup (free_current_contents, &expr);
evaluate_expression (expr); evaluate_expression (expr);
do_cleanups (old_chain); do_cleanups (old_chain);
@ -1062,10 +1062,10 @@ sym_info (char *arg, int from_tty)
static void static void
address_info (char *exp, int from_tty) address_info (char *exp, int from_tty)
{ {
register struct symbol *sym; struct symbol *sym;
register struct minimal_symbol *msymbol; struct minimal_symbol *msymbol;
register long val; long val;
register long basereg; long basereg;
asection *section; asection *section;
CORE_ADDR load_addr; CORE_ADDR load_addr;
int is_a_field_of_this; /* C++: lookup_symbol sets this to nonzero int is_a_field_of_this; /* C++: lookup_symbol sets this to nonzero
@ -1355,8 +1355,8 @@ static void
display_command (char *exp, int from_tty) display_command (char *exp, int from_tty)
{ {
struct format_data fmt; struct format_data fmt;
register struct expression *expr; struct expression *expr;
register struct display *new; struct display *new;
int display_it = 1; int display_it = 1;
#if defined(TUI) #if defined(TUI)
@ -1424,7 +1424,7 @@ free_display (struct display *d)
void void
clear_displays (void) clear_displays (void)
{ {
register struct display *d; struct display *d;
while ((d = display_chain) != NULL) while ((d = display_chain) != NULL)
{ {
@ -1439,7 +1439,7 @@ clear_displays (void)
static void static void
delete_display (int num) delete_display (int num)
{ {
register struct display *d1, *d; struct display *d1, *d;
if (!display_chain) if (!display_chain)
error ("No display number %d.", num); error ("No display number %d.", num);
@ -1471,9 +1471,9 @@ delete_display (int num)
static void static void
undisplay_command (char *args, int from_tty) undisplay_command (char *args, int from_tty)
{ {
register char *p = args; char *p = args;
register char *p1; char *p1;
register int num; int num;
if (args == 0) if (args == 0)
{ {
@ -1594,7 +1594,7 @@ do_one_display (struct display *d)
void void
do_displays (void) do_displays (void)
{ {
register struct display *d; struct display *d;
for (d = display_chain; d; d = d->next) for (d = display_chain; d; d = d->next)
do_one_display (d); do_one_display (d);
@ -1606,7 +1606,7 @@ do_displays (void)
void void
disable_display (int num) disable_display (int num)
{ {
register struct display *d; struct display *d;
for (d = display_chain; d; d = d->next) for (d = display_chain; d; d = d->next)
if (d->number == num) if (d->number == num)
@ -1632,7 +1632,7 @@ disable_current_display (void)
static void static void
display_info (char *ignore, int from_tty) display_info (char *ignore, int from_tty)
{ {
register struct display *d; struct display *d;
if (!display_chain) if (!display_chain)
printf_unfiltered ("There are no auto-display expressions now.\n"); printf_unfiltered ("There are no auto-display expressions now.\n");
@ -1659,10 +1659,10 @@ Num Enb Expression\n");
static void static void
enable_display (char *args, int from_tty) enable_display (char *args, int from_tty)
{ {
register char *p = args; char *p = args;
register char *p1; char *p1;
register int num; int num;
register struct display *d; struct display *d;
if (p == 0) if (p == 0)
{ {
@ -1698,9 +1698,9 @@ enable_display (char *args, int from_tty)
static void static void
disable_display_command (char *args, int from_tty) disable_display_command (char *args, int from_tty)
{ {
register char *p = args; char *p = args;
register char *p1; char *p1;
register struct display *d; struct display *d;
if (p == 0) if (p == 0)
{ {
@ -1741,8 +1741,8 @@ print_variable_value (struct symbol *var, struct frame_info *frame,
static void static void
printf_command (char *arg, int from_tty) printf_command (char *arg, int from_tty)
{ {
register char *f = NULL; char *f = NULL;
register char *s = arg; char *s = arg;
char *string = NULL; char *string = NULL;
struct value **val_args; struct value **val_args;
char *substrings; char *substrings;

View file

@ -816,9 +816,9 @@ mips_receive_trailer (unsigned char *trlr, int *pgarbage, int *pch, int timeout)
static int static int
mips_cksum (const unsigned char *hdr, const unsigned char *data, int len) mips_cksum (const unsigned char *hdr, const unsigned char *data, int len)
{ {
register const unsigned char *p; const unsigned char *p;
register int c; int c;
register int cksum; int cksum;
cksum = 0; cksum = 0;
@ -843,7 +843,7 @@ mips_send_packet (const char *s, int get_ack)
{ {
/* unsigned */ int len; /* unsigned */ int len;
unsigned char *packet; unsigned char *packet;
register int cksum; int cksum;
int try; int try;
len = strlen (s); len = strlen (s);

View file

@ -257,9 +257,9 @@ vx_create_inferior (char *exec_file, char *args, char **env)
static void static void
parse_args (register char *arg_string, arg_array *arg_struct) parse_args (register char *arg_string, arg_array *arg_struct)
{ {
register int arg_count = 0; /* number of arguments */ int arg_count = 0; /* number of arguments */
register int arg_index = 0; int arg_index = 0;
register char *p0; char *p0;
memset ((char *) arg_struct, '\0', sizeof (arg_array)); memset ((char *) arg_struct, '\0', sizeof (arg_array));
@ -309,7 +309,7 @@ skip_white_space (register char *p)
static char * static char *
find_white_space (register char *p) find_white_space (register char *p)
{ {
register int c; int c;
while ((c = *p) != ' ' && c != '\t' && c) while ((c = *p) != ' ' && c != '\t' && c)
{ {
@ -934,7 +934,7 @@ sleep_ms (long ms)
static ptid_t static ptid_t
vx_wait (ptid_t ptid_to_wait_for, struct target_waitstatus *status) vx_wait (ptid_t ptid_to_wait_for, struct target_waitstatus *status)
{ {
register int pid; int pid;
RDB_EVENT rdbEvent; RDB_EVENT rdbEvent;
int quit_failed; int quit_failed;

View file

@ -646,7 +646,7 @@ vmap_secs (struct vmap *vp, LdInfo *ldi, int arch64)
static void static void
vmap_symtab (struct vmap *vp) vmap_symtab (struct vmap *vp)
{ {
register struct objfile *objfile; struct objfile *objfile;
struct section_offsets *new_offsets; struct section_offsets *new_offsets;
int i; int i;
@ -720,7 +720,7 @@ static struct vmap *
add_vmap (LdInfo *ldi) add_vmap (LdInfo *ldi)
{ {
bfd *abfd, *last; bfd *abfd, *last;
register char *mem, *objname, *filename; char *mem, *objname, *filename;
struct objfile *obj; struct objfile *obj;
struct vmap *vp; struct vmap *vp;
int fd; int fd;
@ -803,7 +803,7 @@ static void
vmap_ldinfo (LdInfo *ldi) vmap_ldinfo (LdInfo *ldi)
{ {
struct stat ii, vi; struct stat ii, vi;
register struct vmap *vp; struct vmap *vp;
int got_one, retried; int got_one, retried;
int got_exec_file = 0; int got_exec_file = 0;
uint next; uint next;

View file

@ -1463,7 +1463,7 @@ rs6000_in_solib_return_trampoline (CORE_ADDR pc, char *name)
CORE_ADDR CORE_ADDR
rs6000_skip_trampoline_code (CORE_ADDR pc) rs6000_skip_trampoline_code (CORE_ADDR pc)
{ {
register unsigned int ii, op; unsigned int ii, op;
int rel; int rel;
CORE_ADDR solib_target_pc; CORE_ADDR solib_target_pc;
struct minimal_symbol *msymbol; struct minimal_symbol *msymbol;

View file

@ -237,7 +237,7 @@ scm_read_token (int c, int weird)
static int static int
scm_skip_ws (void) scm_skip_ws (void)
{ {
register int c; int c;
while (1) while (1)
switch ((c = *lexptr++)) switch ((c = *lexptr++))
{ {

View file

@ -858,9 +858,9 @@ sh_frame_saved_pc (struct frame_info *frame)
static void static void
sh_pop_frame (void) sh_pop_frame (void)
{ {
register struct frame_info *frame = get_current_frame (); struct frame_info *frame = get_current_frame ();
register CORE_ADDR fp; CORE_ADDR fp;
register int regnum; int regnum;
if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame), if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame),
get_frame_base (frame), get_frame_base (frame),

View file

@ -1366,9 +1366,9 @@ sh_frame_saved_pc (struct frame_info *frame)
static void static void
sh64_pop_frame (void) sh64_pop_frame (void)
{ {
register struct frame_info *frame = get_current_frame (); struct frame_info *frame = get_current_frame ();
register CORE_ADDR fp; CORE_ADDR fp;
register int regnum; int regnum;
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
int media_mode = pc_is_isa32 (get_frame_pc (frame)); int media_mode = pc_is_isa32 (get_frame_pc (frame));

View file

@ -338,7 +338,7 @@ free_so (struct so_list *so)
static int static int
symbol_add_stub (void *arg) symbol_add_stub (void *arg)
{ {
register struct so_list *so = (struct so_list *) arg; /* catch_errs bogon */ struct so_list *so = (struct so_list *) arg; /* catch_errs bogon */
struct section_addr_info *sap; struct section_addr_info *sap;
/* Have we already loaded this shared object? */ /* Have we already loaded this shared object? */
@ -627,7 +627,7 @@ solib_add (char *pattern, int from_tty, struct target_ops *target, int readsyms)
static void static void
info_sharedlibrary_command (char *ignore, int from_tty) info_sharedlibrary_command (char *ignore, int from_tty)
{ {
register struct so_list *so = NULL; /* link map state variable */ struct so_list *so = NULL; /* link map state variable */
int header_done = 0; int header_done = 0;
int addr_width; int addr_width;
char *addr_fmt; char *addr_fmt;
@ -709,7 +709,7 @@ info_sharedlibrary_command (char *ignore, int from_tty)
char * char *
solib_address (CORE_ADDR address) solib_address (CORE_ADDR address)
{ {
register struct so_list *so = 0; /* link map state variable */ struct so_list *so = 0; /* link map state variable */
for (so = so_list_head; so; so = so->next) for (so = so_list_head; so; so = so->next)
{ {

View file

@ -477,9 +477,9 @@ init_import_symbols (struct objfile *objfile)
unsigned int string_table; unsigned int string_table;
unsigned int string_table_size; unsigned int string_table_size;
char *string_buffer; char *string_buffer;
register int i; int i;
register int j; int j;
register int k; int k;
asection *text_section; /* section handle */ asection *text_section; /* section handle */
unsigned int dl_header[12]; /* SOM executable header */ unsigned int dl_header[12]; /* SOM executable header */
@ -597,9 +597,9 @@ init_export_symbols (struct objfile *objfile)
unsigned int string_table; unsigned int string_table;
unsigned int string_table_size; unsigned int string_table_size;
char *string_buffer; char *string_buffer;
register int i; int i;
register int j; int j;
register int k; int k;
asection *text_section; /* section handle */ asection *text_section; /* section handle */
unsigned int dl_header[12]; /* SOM executable header */ unsigned int dl_header[12]; /* SOM executable header */

View file

@ -317,8 +317,8 @@ show_directories (char *ignore, int from_tty)
void void
forget_cached_source_info (void) forget_cached_source_info (void)
{ {
register struct symtab *s; struct symtab *s;
register struct objfile *objfile; struct objfile *objfile;
struct partial_symtab *pst; struct partial_symtab *pst;
for (objfile = object_files; objfile != NULL; objfile = objfile->next) for (objfile = object_files; objfile != NULL; objfile = objfile->next)
@ -594,7 +594,7 @@ add_path (char *dirname, char **which_path, int parse_separators)
static void static void
source_info (char *ignore, int from_tty) source_info (char *ignore, int from_tty)
{ {
register struct symtab *s = current_source_symtab; struct symtab *s = current_source_symtab;
if (!s) if (!s)
{ {
@ -660,11 +660,11 @@ openp (const char *path, int try_cwd_first, const char *string,
int mode, int prot, int mode, int prot,
char **filename_opened) char **filename_opened)
{ {
register int fd; int fd;
register char *filename; char *filename;
const char *p; const char *p;
const char *p1; const char *p1;
register int len; int len;
int alloclen; int alloclen;
if (!path) if (!path)
@ -907,7 +907,7 @@ void
find_source_lines (struct symtab *s, int desc) find_source_lines (struct symtab *s, int desc)
{ {
struct stat st; struct stat st;
register char *data, *p, *end; char *data, *p, *end;
int nlines = 0; int nlines = 0;
int lines_allocated = 1000; int lines_allocated = 1000;
int *line_charpos; int *line_charpos;
@ -1021,8 +1021,8 @@ source_line_charpos (struct symtab *s, int line)
int int
source_charpos_line (register struct symtab *s, register int chr) source_charpos_line (register struct symtab *s, register int chr)
{ {
register int line = 0; int line = 0;
register int *lnp; int *lnp;
if (s == 0 || s->line_charpos == 0) if (s == 0 || s->line_charpos == 0)
return 0; return 0;
@ -1049,7 +1049,7 @@ source_charpos_line (register struct symtab *s, register int chr)
static int static int
get_filename_and_charpos (struct symtab *s, char **fullname) get_filename_and_charpos (struct symtab *s, char **fullname)
{ {
register int desc, linenums_changed = 0; int desc, linenums_changed = 0;
desc = open_source_file (s); desc = open_source_file (s);
if (desc < 0) if (desc < 0)
@ -1107,9 +1107,9 @@ static void print_source_lines_base (struct symtab *s, int line, int stopline,
static void static void
print_source_lines_base (struct symtab *s, int line, int stopline, int noerror) print_source_lines_base (struct symtab *s, int line, int stopline, int noerror)
{ {
register int c; int c;
register int desc; int desc;
register FILE *stream; FILE *stream;
int nlines = stopline - line; int nlines = stopline - line;
/* Regardless of whether we can open the file, set current_source_symtab. */ /* Regardless of whether we can open the file, set current_source_symtab. */
@ -1351,9 +1351,9 @@ line_info (char *arg, int from_tty)
static void static void
forward_search_command (char *regex, int from_tty) forward_search_command (char *regex, int from_tty)
{ {
register int c; int c;
register int desc; int desc;
register FILE *stream; FILE *stream;
int line; int line;
char *msg; char *msg;
@ -1447,9 +1447,9 @@ forward_search_command (char *regex, int from_tty)
static void static void
reverse_search_command (char *regex, int from_tty) reverse_search_command (char *regex, int from_tty)
{ {
register int c; int c;
register int desc; int desc;
register FILE *stream; FILE *stream;
int line; int line;
char *msg; char *msg;

View file

@ -1093,7 +1093,7 @@ static void sparc_frame_find_saved_regs (struct frame_info *, CORE_ADDR *);
static void static void
sparc_frame_find_saved_regs (struct frame_info *fi, CORE_ADDR *saved_regs_addr) sparc_frame_find_saved_regs (struct frame_info *fi, CORE_ADDR *saved_regs_addr)
{ {
register int regnum; int regnum;
CORE_ADDR frame_addr = get_frame_base (fi); CORE_ADDR frame_addr = get_frame_base (fi);
gdb_assert (fi != NULL); gdb_assert (fi != NULL);
@ -1210,8 +1210,8 @@ sparc_frame_find_saved_regs (struct frame_info *fi, CORE_ADDR *saved_regs_addr)
void void
sparc_pop_frame (void) sparc_pop_frame (void)
{ {
register struct frame_info *frame = get_current_frame (); struct frame_info *frame = get_current_frame ();
register CORE_ADDR pc; CORE_ADDR pc;
CORE_ADDR *fsr; CORE_ADDR *fsr;
char *raw_buffer; char *raw_buffer;
int regnum; int regnum;
@ -1662,7 +1662,7 @@ fill_gregset (gdb_gregset_t *gregsetp, int regno)
void void
supply_fpregset (gdb_fpregset_t *fpregsetp) supply_fpregset (gdb_fpregset_t *fpregsetp)
{ {
register int regi; int regi;
char *from; char *from;
if (!SPARC_HAS_FPU) if (!SPARC_HAS_FPU)

View file

@ -255,11 +255,11 @@ static struct symbol *current_symbol = NULL;
static struct type ** static struct type **
dbx_lookup_type (int typenums[2]) dbx_lookup_type (int typenums[2])
{ {
register int filenum = typenums[0]; int filenum = typenums[0];
register int index = typenums[1]; int index = typenums[1];
unsigned old_len; unsigned old_len;
register int real_filenum; int real_filenum;
register struct header_file *f; struct header_file *f;
int f_orig_length; int f_orig_length;
if (filenum == -1) /* -1,-1 is for temporary types. */ if (filenum == -1) /* -1,-1 is for temporary types. */
@ -356,7 +356,7 @@ dbx_lookup_type (int typenums[2])
static struct type * static struct type *
dbx_alloc_type (int typenums[2], struct objfile *objfile) dbx_alloc_type (int typenums[2], struct objfile *objfile)
{ {
register struct type **type_addr; struct type **type_addr;
if (typenums[0] == -1) if (typenums[0] == -1)
{ {
@ -1216,11 +1216,11 @@ struct symbol *
define_symbol (CORE_ADDR valu, char *string, int desc, int type, define_symbol (CORE_ADDR valu, char *string, int desc, int type,
struct objfile *objfile) struct objfile *objfile)
{ {
register struct symbol *sym; struct symbol *sym;
char *p = (char *) find_name_end (string); char *p = (char *) find_name_end (string);
int deftype; int deftype;
int synonym = 0; int synonym = 0;
register int i; int i;
/* We would like to eliminate nameless symbols, but keep their types. /* We would like to eliminate nameless symbols, but keep their types.
E.g. stab entry ":t10=*2" should produce a type 10, which is a pointer E.g. stab entry ":t10=*2" should produce a type 10, which is a pointer
@ -2266,7 +2266,7 @@ error_type (char **pp, struct objfile *objfile)
static struct type * static struct type *
read_type (register char **pp, struct objfile *objfile) read_type (register char **pp, struct objfile *objfile)
{ {
register struct type *type = 0; struct type *type = 0;
struct type *type1; struct type *type1;
int typenums[2]; int typenums[2];
char type_descriptor; char type_descriptor;
@ -3004,7 +3004,7 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
struct next_fnfieldlist *new_fnlist; struct next_fnfieldlist *new_fnlist;
struct next_fnfield *new_sublist; struct next_fnfield *new_sublist;
char *main_fn_name; char *main_fn_name;
register char *p; char *p;
/* Process each list until we find something that is not a member function /* Process each list until we find something that is not a member function
or find the end of the functions. */ or find the end of the functions. */
@ -3465,7 +3465,7 @@ static int
read_cpp_abbrev (struct field_info *fip, char **pp, struct type *type, read_cpp_abbrev (struct field_info *fip, char **pp, struct type *type,
struct objfile *objfile) struct objfile *objfile)
{ {
register char *p; char *p;
char *name; char *name;
char cpp_abbrev; char cpp_abbrev;
struct type *context; struct type *context;
@ -3727,7 +3727,7 @@ static int
read_struct_fields (struct field_info *fip, char **pp, struct type *type, read_struct_fields (struct field_info *fip, char **pp, struct type *type,
struct objfile *objfile) struct objfile *objfile)
{ {
register char *p; char *p;
struct nextfield *new; struct nextfield *new;
/* We better set p right now, in case there are no fields at all... */ /* We better set p right now, in case there are no fields at all... */
@ -3948,7 +3948,7 @@ static int
read_tilde_fields (struct field_info *fip, char **pp, struct type *type, read_tilde_fields (struct field_info *fip, char **pp, struct type *type,
struct objfile *objfile) struct objfile *objfile)
{ {
register char *p; char *p;
STABS_CONTINUE (pp, objfile); STABS_CONTINUE (pp, objfile);
@ -4029,7 +4029,7 @@ read_tilde_fields (struct field_info *fip, char **pp, struct type *type,
static int static int
attach_fn_fields_to_type (struct field_info *fip, register struct type *type) attach_fn_fields_to_type (struct field_info *fip, register struct type *type)
{ {
register int n; int n;
for (n = TYPE_NFN_FIELDS (type); for (n = TYPE_NFN_FIELDS (type);
fip->fnlist != NULL; fip->fnlist != NULL;
@ -4181,9 +4181,9 @@ static int
attach_fields_to_type (struct field_info *fip, register struct type *type, attach_fields_to_type (struct field_info *fip, register struct type *type,
struct objfile *objfile) struct objfile *objfile)
{ {
register int nfields = 0; int nfields = 0;
register int non_public_fields = 0; int non_public_fields = 0;
register struct nextfield *scan; struct nextfield *scan;
/* Count up the number of fields that we have, as well as taking note of /* Count up the number of fields that we have, as well as taking note of
whether or not there are any non-public fields, which requires us to whether or not there are any non-public fields, which requires us to
@ -4448,10 +4448,10 @@ static struct type *
read_enum_type (register char **pp, register struct type *type, read_enum_type (register char **pp, register struct type *type,
struct objfile *objfile) struct objfile *objfile)
{ {
register char *p; char *p;
char *name; char *name;
register long n; long n;
register struct symbol *sym; struct symbol *sym;
int nsyms = 0; int nsyms = 0;
struct pending **symlist; struct pending **symlist;
struct pending *osyms, *syms; struct pending *osyms, *syms;

View file

@ -213,7 +213,7 @@ print_frame_args (struct symbol *func, struct frame_info *fi, int num,
struct block *b = NULL; struct block *b = NULL;
int first = 1; int first = 1;
struct dict_iterator iter; struct dict_iterator iter;
register struct symbol *sym; struct symbol *sym;
struct value *val; struct value *val;
/* Offset of next stack argument beyond the one we have seen that is /* Offset of next stack argument beyond the one we have seen that is
at the highest offset. at the highest offset.
@ -538,7 +538,7 @@ print_frame (struct frame_info *fi,
struct symtab_and_line sal) struct symtab_and_line sal)
{ {
struct symbol *func; struct symbol *func;
register char *funname = 0; char *funname = 0;
enum language funlang = language_unknown; enum language funlang = language_unknown;
struct ui_stream *stb; struct ui_stream *stb;
struct cleanup *old_chain; struct cleanup *old_chain;
@ -1139,10 +1139,10 @@ static void
backtrace_command_1 (char *count_exp, int show_locals, int from_tty) backtrace_command_1 (char *count_exp, int show_locals, int from_tty)
{ {
struct frame_info *fi; struct frame_info *fi;
register int count; int count;
register int i; int i;
register struct frame_info *trailing; struct frame_info *trailing;
register int trailing_level; int trailing_level;
if (!target_has_stack) if (!target_has_stack)
error ("No stack."); error ("No stack.");
@ -1350,8 +1350,8 @@ print_block_frame_labels (struct block *b, int *have_default,
register struct ui_file *stream) register struct ui_file *stream)
{ {
struct dict_iterator iter; struct dict_iterator iter;
register struct symbol *sym; struct symbol *sym;
register int values_printed = 0; int values_printed = 0;
ALL_BLOCK_SYMBOLS (b, iter, sym) ALL_BLOCK_SYMBOLS (b, iter, sym)
{ {
@ -1391,8 +1391,8 @@ static void
print_frame_local_vars (register struct frame_info *fi, register int num_tabs, print_frame_local_vars (register struct frame_info *fi, register int num_tabs,
register struct ui_file *stream) register struct ui_file *stream)
{ {
register struct block *block = get_frame_block (fi, 0); struct block *block = get_frame_block (fi, 0);
register int values_printed = 0; int values_printed = 0;
if (block == 0) if (block == 0)
{ {
@ -1424,9 +1424,9 @@ static void
print_frame_label_vars (register struct frame_info *fi, int this_level_only, print_frame_label_vars (register struct frame_info *fi, int this_level_only,
register struct ui_file *stream) register struct ui_file *stream)
{ {
register struct blockvector *bl; struct blockvector *bl;
register struct block *block = get_frame_block (fi, 0); struct block *block = get_frame_block (fi, 0);
register int values_printed = 0; int values_printed = 0;
int index, have_default = 0; int index, have_default = 0;
char *blocks_printed; char *blocks_printed;
CORE_ADDR pc = get_frame_pc (fi); CORE_ADDR pc = get_frame_pc (fi);
@ -1530,10 +1530,10 @@ print_frame_arg_vars (register struct frame_info *fi,
register struct ui_file *stream) register struct ui_file *stream)
{ {
struct symbol *func = get_frame_function (fi); struct symbol *func = get_frame_function (fi);
register struct block *b; struct block *b;
struct dict_iterator iter; struct dict_iterator iter;
register struct symbol *sym, *sym2; struct symbol *sym, *sym2;
register int values_printed = 0; int values_printed = 0;
if (func == 0) if (func == 0)
{ {
@ -1660,8 +1660,8 @@ struct frame_info *
find_relative_frame (register struct frame_info *frame, find_relative_frame (register struct frame_info *frame,
register int *level_offset_ptr) register int *level_offset_ptr)
{ {
register struct frame_info *prev; struct frame_info *prev;
register struct frame_info *frame1; struct frame_info *frame1;
/* Going up is simple: just do get_prev_frame enough times /* Going up is simple: just do get_prev_frame enough times
or until initial frame is reached. */ or until initial frame is reached. */
@ -1740,7 +1740,7 @@ current_frame_command (char *level_exp, int from_tty)
static void static void
up_silently_base (char *count_exp) up_silently_base (char *count_exp)
{ {
register struct frame_info *fi; struct frame_info *fi;
int count = 1, count1; int count = 1, count1;
if (count_exp) if (count_exp)
count = parse_and_eval_long (count_exp); count = parse_and_eval_long (count_exp);
@ -1777,7 +1777,7 @@ up_command (char *count_exp, int from_tty)
static void static void
down_silently_base (char *count_exp) down_silently_base (char *count_exp)
{ {
register struct frame_info *frame; struct frame_info *frame;
int count = -1, count1; int count = -1, count1;
if (count_exp) if (count_exp)
count = -parse_and_eval_long (count_exp); count = -parse_and_eval_long (count_exp);
@ -1981,7 +1981,7 @@ func_command (char *arg, int from_tty)
enum language enum language
get_frame_language (void) get_frame_language (void)
{ {
register struct symtab *s; struct symtab *s;
enum language flang; /* The language of the current frame */ enum language flang; /* The language of the current frame */
if (deprecated_selected_frame) if (deprecated_selected_frame)

View file

@ -130,7 +130,7 @@ int sourcedesc;
open (char *filename, int modes) open (char *filename, int modes)
{ {
register char *next; char *next;
if (modes) if (modes)
{ {
@ -213,8 +213,8 @@ myread (int desc, char *destptr, int size, char *filename)
int int
fread (int bufp, int numelts, int eltsize, int stream) fread (int bufp, int numelts, int eltsize, int stream)
{ {
register int elts = min (numelts, sourceleft / eltsize); int elts = min (numelts, sourceleft / eltsize);
register int len = elts * eltsize; int len = elts * eltsize;
if (stream != sourcedesc) if (stream != sourcedesc)
{ {
@ -284,7 +284,7 @@ fprintf (int ign, int a1, int a2, int a3, int a4, int a5, int a6, int a7,
fwrite (register char *buf, int numelts, int size, int stream) fwrite (register char *buf, int numelts, int size, int stream)
{ {
register int i = numelts * size; int i = numelts * size;
while (i-- > 0) while (i-- > 0)
fputc (*buf++, stream); fputc (*buf++, stream);
} }
@ -560,7 +560,7 @@ int kdb_stack_end;
_initialize_standalone (void) _initialize_standalone (void)
{ {
register char *next; char *next;
/* Find start of data on files. */ /* Find start of data on files. */

View file

@ -206,7 +206,7 @@ int auto_solib_limit;
static int static int
compare_symbols (const void *s1p, const void *s2p) compare_symbols (const void *s1p, const void *s2p)
{ {
register struct symbol **s1, **s2; struct symbol **s1, **s2;
s1 = (struct symbol **) s1p; s1 = (struct symbol **) s1p;
s2 = (struct symbol **) s2p; s2 = (struct symbol **) s2p;
@ -244,7 +244,7 @@ sort_pst_symbols (struct partial_symtab *pst)
char * char *
obsavestring (const char *ptr, int size, struct obstack *obstackp) obsavestring (const char *ptr, int size, struct obstack *obstackp)
{ {
register char *p = (char *) obstack_alloc (obstackp, size + 1); char *p = (char *) obstack_alloc (obstackp, size + 1);
/* Open-coded memcpy--saves function call time. These strings are usually /* Open-coded memcpy--saves function call time. These strings are usually
short. FIXME: Is this really still true with a compiler that can short. FIXME: Is this really still true with a compiler that can
inline memcpy? */ inline memcpy? */
@ -266,8 +266,8 @@ char *
obconcat (struct obstack *obstackp, const char *s1, const char *s2, obconcat (struct obstack *obstackp, const char *s1, const char *s2,
const char *s3) const char *s3)
{ {
register int len = strlen (s1) + strlen (s2) + strlen (s3) + 1; int len = strlen (s1) + strlen (s2) + strlen (s3) + 1;
register char *val = (char *) obstack_alloc (obstackp, len); char *val = (char *) obstack_alloc (obstackp, len);
strcpy (val, s1); strcpy (val, s1);
strcat (val, s2); strcat (val, s2);
strcat (val, s3); strcat (val, s3);
@ -2281,7 +2281,7 @@ deduce_language_from_filename (char *filename)
struct symtab * struct symtab *
allocate_symtab (char *filename, struct objfile *objfile) allocate_symtab (char *filename, struct objfile *objfile)
{ {
register struct symtab *symtab; struct symtab *symtab;
symtab = (struct symtab *) symtab = (struct symtab *)
obstack_alloc (&objfile->symbol_obstack, sizeof (struct symtab)); obstack_alloc (&objfile->symbol_obstack, sizeof (struct symtab));
@ -2520,9 +2520,9 @@ free_named_symtabs (char *name)
compilation units. We want to blow away any old info about these compilation units. We want to blow away any old info about these
compilation units, regardless of which objfiles they arrived in. --gnu. */ compilation units, regardless of which objfiles they arrived in. --gnu. */
register struct symtab *s; struct symtab *s;
register struct symtab *prev; struct symtab *prev;
register struct partial_symtab *ps; struct partial_symtab *ps;
struct blockvector *bv; struct blockvector *bv;
int blewit = 0; int blewit = 0;
@ -2653,7 +2653,7 @@ add_psymbol_to_list (char *name, int namelength, domain_enum domain,
CORE_ADDR coreaddr, /* Value as a CORE_ADDR */ CORE_ADDR coreaddr, /* Value as a CORE_ADDR */
enum language language, struct objfile *objfile) enum language language, struct objfile *objfile)
{ {
register struct partial_symbol *psym; struct partial_symbol *psym;
char *buf = alloca (namelength + 1); char *buf = alloca (namelength + 1);
/* psymbol is static so that there will be no uninitialized gaps in the /* psymbol is static so that there will be no uninitialized gaps in the
structure which might contain random data, causing cache misses in structure which might contain random data, causing cache misses in
@ -2706,7 +2706,7 @@ add_psymbol_with_dem_name_to_list (char *name, int namelength, char *dem_name,
enum language language, enum language language,
struct objfile *objfile) struct objfile *objfile)
{ {
register struct partial_symbol *psym; struct partial_symbol *psym;
char *buf = alloca (namelength + 1); char *buf = alloca (namelength + 1);
/* psymbol is static so that there will be no uninitialized gaps in the /* psymbol is static so that there will be no uninitialized gaps in the
structure which might contain random data, causing cache misses in structure which might contain random data, causing cache misses in

View file

@ -118,8 +118,8 @@ free_symtab_block (struct objfile *objfile, struct block *b)
void void
free_symtab (register struct symtab *s) free_symtab (register struct symtab *s)
{ {
register int i, n; int i, n;
register struct blockvector *bv; struct blockvector *bv;
switch (s->free_code) switch (s->free_code)
{ {
@ -1129,13 +1129,13 @@ maintenance_info_psymtabs (char *regexp, int from_tty)
void void
maintenance_check_symtabs (char *ignore, int from_tty) maintenance_check_symtabs (char *ignore, int from_tty)
{ {
register struct symbol *sym; struct symbol *sym;
register struct partial_symbol **psym; struct partial_symbol **psym;
register struct symtab *s = NULL; struct symtab *s = NULL;
register struct partial_symtab *ps; struct partial_symtab *ps;
struct blockvector *bv; struct blockvector *bv;
register struct objfile *objfile; struct objfile *objfile;
register struct block *b; struct block *b;
int length; int length;
ALL_PSYMTABS (objfile, ps) ALL_PSYMTABS (objfile, ps)
@ -1214,7 +1214,7 @@ maintenance_check_symtabs (char *ignore, int from_tty)
static int static int
block_depth (struct block *block) block_depth (struct block *block)
{ {
register int i = 0; int i = 0;
while ((block = BLOCK_SUPERBLOCK (block)) != NULL) while ((block = BLOCK_SUPERBLOCK (block)) != NULL)
{ {
i++; i++;

View file

@ -151,9 +151,9 @@ const struct block *block_found;
struct symtab * struct symtab *
lookup_symtab (const char *name) lookup_symtab (const char *name)
{ {
register struct symtab *s; struct symtab *s;
register struct partial_symtab *ps; struct partial_symtab *ps;
register struct objfile *objfile; struct objfile *objfile;
char *real_path = NULL; char *real_path = NULL;
char *full_path = NULL; char *full_path = NULL;
@ -244,8 +244,8 @@ got_symtab:
struct partial_symtab * struct partial_symtab *
lookup_partial_symtab (const char *name) lookup_partial_symtab (const char *name)
{ {
register struct partial_symtab *pst; struct partial_symtab *pst;
register struct objfile *objfile; struct objfile *objfile;
char *full_path = NULL; char *full_path = NULL;
char *real_path = NULL; char *real_path = NULL;
@ -679,8 +679,8 @@ init_sal (struct symtab_and_line *sal)
struct partial_symtab * struct partial_symtab *
find_pc_sect_psymtab (CORE_ADDR pc, asection *section) find_pc_sect_psymtab (CORE_ADDR pc, asection *section)
{ {
register struct partial_symtab *pst; struct partial_symtab *pst;
register struct objfile *objfile; struct objfile *objfile;
struct minimal_symbol *msymbol; struct minimal_symbol *msymbol;
/* If we know that this is not a text address, return failure. This is /* If we know that this is not a text address, return failure. This is
@ -1492,12 +1492,12 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name,
struct type * struct type *
lookup_transparent_type (const char *name) lookup_transparent_type (const char *name)
{ {
register struct symbol *sym; struct symbol *sym;
register struct symtab *s = NULL; struct symtab *s = NULL;
register struct partial_symtab *ps; struct partial_symtab *ps;
struct blockvector *bv; struct blockvector *bv;
register struct objfile *objfile; struct objfile *objfile;
register struct block *block; struct block *block;
/* Now search all the global symbols. Do the symtab's first, then /* Now search all the global symbols. Do the symtab's first, then
check the psymtab's. If a psymtab indicates the existence check the psymtab's. If a psymtab indicates the existence
@ -1601,8 +1601,8 @@ lookup_transparent_type (const char *name)
struct partial_symtab * struct partial_symtab *
find_main_psymtab (void) find_main_psymtab (void)
{ {
register struct partial_symtab *pst; struct partial_symtab *pst;
register struct objfile *objfile; struct objfile *objfile;
ALL_PSYMTABS (objfile, pst) ALL_PSYMTABS (objfile, pst)
{ {
@ -1746,12 +1746,12 @@ find_active_alias (struct symbol *sym, CORE_ADDR addr)
struct symtab * struct symtab *
find_pc_sect_symtab (CORE_ADDR pc, asection *section) find_pc_sect_symtab (CORE_ADDR pc, asection *section)
{ {
register struct block *b; struct block *b;
struct blockvector *bv; struct blockvector *bv;
register struct symtab *s = NULL; struct symtab *s = NULL;
register struct symtab *best_s = NULL; struct symtab *best_s = NULL;
register struct partial_symtab *ps; struct partial_symtab *ps;
register struct objfile *objfile; struct objfile *objfile;
CORE_ADDR distance = 0; CORE_ADDR distance = 0;
struct minimal_symbol *msymbol; struct minimal_symbol *msymbol;
@ -1875,10 +1875,10 @@ struct symtab_and_line
find_pc_sect_line (CORE_ADDR pc, struct sec *section, int notcurrent) find_pc_sect_line (CORE_ADDR pc, struct sec *section, int notcurrent)
{ {
struct symtab *s; struct symtab *s;
register struct linetable *l; struct linetable *l;
register int len; int len;
register int i; int i;
register struct linetable_entry *item; struct linetable_entry *item;
struct symtab_and_line val; struct symtab_and_line val;
struct blockvector *bv; struct blockvector *bv;
struct minimal_symbol *msymbol; struct minimal_symbol *msymbol;
@ -2291,8 +2291,8 @@ static int
find_line_common (register struct linetable *l, register int lineno, find_line_common (register struct linetable *l, register int lineno,
int *exact_match) int *exact_match)
{ {
register int i; int i;
register int len; int len;
/* BEST is the smallest linenumber > LINENO so far seen, /* BEST is the smallest linenumber > LINENO so far seen,
or 0 if none has been seen so far. or 0 if none has been seen so far.
@ -2607,9 +2607,9 @@ output_source_filename (char *name, int *first)
static void static void
sources_info (char *ignore, int from_tty) sources_info (char *ignore, int from_tty)
{ {
register struct symtab *s; struct symtab *s;
register struct partial_symtab *ps; struct partial_symtab *ps;
register struct objfile *objfile; struct objfile *objfile;
int first; int first;
if (!have_full_symbols () && !have_partial_symbols ()) if (!have_full_symbols () && !have_partial_symbols ())
@ -2749,14 +2749,14 @@ void
search_symbols (char *regexp, domain_enum kind, int nfiles, char *files[], search_symbols (char *regexp, domain_enum kind, int nfiles, char *files[],
struct symbol_search **matches) struct symbol_search **matches)
{ {
register struct symtab *s; struct symtab *s;
register struct partial_symtab *ps; struct partial_symtab *ps;
register struct blockvector *bv; struct blockvector *bv;
struct blockvector *prev_bv = 0; struct blockvector *prev_bv = 0;
register struct block *b; struct block *b;
register int i = 0; int i = 0;
struct dict_iterator iter; struct dict_iterator iter;
register struct symbol *sym; struct symbol *sym;
struct partial_symbol **psym; struct partial_symbol **psym;
struct objfile *objfile; struct objfile *objfile;
struct minimal_symbol *msymbol; struct minimal_symbol *msymbol;
@ -3585,9 +3585,9 @@ make_symbol_completion_list (char *text, char *word)
char ** char **
make_file_symbol_completion_list (char *text, char *word, char *srcfile) make_file_symbol_completion_list (char *text, char *word, char *srcfile)
{ {
register struct symbol *sym; struct symbol *sym;
register struct symtab *s; struct symtab *s;
register struct block *b; struct block *b;
struct dict_iterator iter; struct dict_iterator iter;
/* The symbol we are completing on. Points in same buffer as text. */ /* The symbol we are completing on. Points in same buffer as text. */
char *sym_text; char *sym_text;
@ -3748,9 +3748,9 @@ not_interesting_fname (const char *fname)
char ** char **
make_source_files_completion_list (char *text, char *word) make_source_files_completion_list (char *text, char *word)
{ {
register struct symtab *s; struct symtab *s;
register struct partial_symtab *ps; struct partial_symtab *ps;
register struct objfile *objfile; struct objfile *objfile;
int first = 1; int first = 1;
int list_alloced = 1; int list_alloced = 1;
int list_used = 0; int list_used = 0;

View file

@ -640,8 +640,8 @@ do_chdir_cleanup (void *old_dir)
void void
execute_command (char *p, int from_tty) execute_command (char *p, int from_tty)
{ {
register struct cmd_list_element *c; struct cmd_list_element *c;
register enum language flang; enum language flang;
static int warned = 0; static int warned = 0;
char *line; char *line;
@ -1135,7 +1135,7 @@ command_line_input (char *prompt_arg, int repeat, char *annotation_suffix)
{ {
static char *linebuffer = 0; static char *linebuffer = 0;
static unsigned linelength = 0; static unsigned linelength = 0;
register char *p; char *p;
char *p1; char *p1;
char *rl; char *rl;
char *local_prompt = prompt_arg; char *local_prompt = prompt_arg;

View file

@ -334,7 +334,7 @@ set_traceframe_context (CORE_ADDR trace_pc)
static struct tracepoint * static struct tracepoint *
set_raw_tracepoint (struct symtab_and_line sal) set_raw_tracepoint (struct symtab_and_line sal)
{ {
register struct tracepoint *t, *tc; struct tracepoint *t, *tc;
struct cleanup *old_chain; struct cleanup *old_chain;
t = (struct tracepoint *) xmalloc (sizeof (struct tracepoint)); t = (struct tracepoint *) xmalloc (sizeof (struct tracepoint));

View file

@ -117,7 +117,7 @@ whatis_exp (char *exp, int show)
{ {
struct expression *expr; struct expression *expr;
struct value *val; struct value *val;
register struct cleanup *old_chain = NULL; struct cleanup *old_chain = NULL;
struct type *real_type = NULL; struct type *real_type = NULL;
struct type *type; struct type *type;
int full = 0; int full = 0;
@ -204,9 +204,9 @@ ptype_eval (struct expression *exp)
static void static void
ptype_command (char *typename, int from_tty) ptype_command (char *typename, int from_tty)
{ {
register struct type *type; struct type *type;
struct expression *expr; struct expression *expr;
register struct cleanup *old_chain; struct cleanup *old_chain;
if (typename == NULL) if (typename == NULL)
{ {
@ -325,8 +325,8 @@ void
maintenance_print_type (char *typename, int from_tty) maintenance_print_type (char *typename, int from_tty)
{ {
struct value *val; struct value *val;
register struct type *type; struct type *type;
register struct cleanup *old_chain; struct cleanup *old_chain;
struct expression *expr; struct expression *expr;
if (typename != NULL) if (typename != NULL)

View file

@ -266,9 +266,9 @@ struct cleanup *
make_my_cleanup (struct cleanup **pmy_chain, make_cleanup_ftype *function, make_my_cleanup (struct cleanup **pmy_chain, make_cleanup_ftype *function,
void *arg) void *arg)
{ {
register struct cleanup *new struct cleanup *new
= (struct cleanup *) xmalloc (sizeof (struct cleanup)); = (struct cleanup *) xmalloc (sizeof (struct cleanup));
register struct cleanup *old_chain = *pmy_chain; struct cleanup *old_chain = *pmy_chain;
new->next = *pmy_chain; new->next = *pmy_chain;
new->function = function; new->function = function;
@ -315,7 +315,7 @@ void
do_my_cleanups (register struct cleanup **pmy_chain, do_my_cleanups (register struct cleanup **pmy_chain,
register struct cleanup *old_chain) register struct cleanup *old_chain)
{ {
register struct cleanup *ptr; struct cleanup *ptr;
while ((ptr = *pmy_chain) != old_chain) while ((ptr = *pmy_chain) != old_chain)
{ {
*pmy_chain = ptr->next; /* Do this first incase recursion */ *pmy_chain = ptr->next; /* Do this first incase recursion */
@ -349,7 +349,7 @@ void
discard_my_cleanups (register struct cleanup **pmy_chain, discard_my_cleanups (register struct cleanup **pmy_chain,
register struct cleanup *old_chain) register struct cleanup *old_chain)
{ {
register struct cleanup *ptr; struct cleanup *ptr;
while ((ptr = *pmy_chain) != old_chain) while ((ptr = *pmy_chain) != old_chain)
{ {
*pmy_chain = ptr->next; *pmy_chain = ptr->next;
@ -1220,7 +1220,7 @@ xvasprintf (char **ret, const char *format, va_list ap)
int int
myread (int desc, char *addr, int len) myread (int desc, char *addr, int len)
{ {
register int val; int val;
int orglen = len; int orglen = len;
while (len > 0) while (len > 0)
@ -1243,7 +1243,7 @@ myread (int desc, char *addr, int len)
char * char *
savestring (const char *ptr, size_t size) savestring (const char *ptr, size_t size)
{ {
register char *p = (char *) xmalloc (size + 1); char *p = (char *) xmalloc (size + 1);
memcpy (p, ptr, size); memcpy (p, ptr, size);
p[size] = 0; p[size] = 0;
return p; return p;
@ -1252,7 +1252,7 @@ savestring (const char *ptr, size_t size)
char * char *
msavestring (void *md, const char *ptr, size_t size) msavestring (void *md, const char *ptr, size_t size)
{ {
register char *p = (char *) xmmalloc (md, size + 1); char *p = (char *) xmmalloc (md, size + 1);
memcpy (p, ptr, size); memcpy (p, ptr, size);
p[size] = 0; p[size] = 0;
return p; return p;
@ -1293,8 +1293,8 @@ int
query (const char *ctlstr, ...) query (const char *ctlstr, ...)
{ {
va_list args; va_list args;
register int answer; int answer;
register int ans2; int ans2;
int retval; int retval;
va_start (args, ctlstr); va_start (args, ctlstr);
@ -1398,7 +1398,7 @@ int
parse_escape (char **string_ptr) parse_escape (char **string_ptr)
{ {
int target_char; int target_char;
register int c = *(*string_ptr)++; int c = *(*string_ptr)++;
if (c_parse_backslash (c, &target_char)) if (c_parse_backslash (c, &target_char))
return target_char; return target_char;
else else

View file

@ -1158,8 +1158,8 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
int int
value_logical_not (struct value *arg1) value_logical_not (struct value *arg1)
{ {
register int len; int len;
register char *p; char *p;
struct type *type1; struct type *type1;
COERCE_NUMBER (arg1); COERCE_NUMBER (arg1);
@ -1216,8 +1216,8 @@ value_strcmp (struct value *arg1, struct value *arg2)
int int
value_equal (struct value *arg1, struct value *arg2) value_equal (struct value *arg1, struct value *arg2)
{ {
register int len; int len;
register char *p1, *p2; char *p1, *p2;
struct type *type1, *type2; struct type *type1, *type2;
enum type_code code1; enum type_code code1;
enum type_code code2; enum type_code code2;
@ -1275,8 +1275,8 @@ value_equal (struct value *arg1, struct value *arg2)
int int
value_less (struct value *arg1, struct value *arg2) value_less (struct value *arg1, struct value *arg2)
{ {
register enum type_code code1; enum type_code code1;
register enum type_code code2; enum type_code code2;
struct type *type1, *type2; struct type *type1, *type2;
COERCE_NUMBER (arg1); COERCE_NUMBER (arg1);
@ -1317,8 +1317,8 @@ value_less (struct value *arg1, struct value *arg2)
struct value * struct value *
value_neg (struct value *arg1) value_neg (struct value *arg1)
{ {
register struct type *type; struct type *type;
register struct type *result_type = VALUE_TYPE (arg1); struct type *result_type = VALUE_TYPE (arg1);
COERCE_REF (arg1); COERCE_REF (arg1);
COERCE_ENUM (arg1); COERCE_ENUM (arg1);
@ -1346,8 +1346,8 @@ value_neg (struct value *arg1)
struct value * struct value *
value_complement (struct value *arg1) value_complement (struct value *arg1)
{ {
register struct type *type; struct type *type;
register struct type *result_type = VALUE_TYPE (arg1); struct type *result_type = VALUE_TYPE (arg1);
int typecode; int typecode;
COERCE_REF (arg1); COERCE_REF (arg1);

View file

@ -88,7 +88,7 @@ int overload_resolution = 0;
struct value * struct value *
find_function_in_inferior (const char *name) find_function_in_inferior (const char *name)
{ {
register struct symbol *sym; struct symbol *sym;
sym = lookup_symbol (name, 0, VAR_DOMAIN, 0, NULL); sym = lookup_symbol (name, 0, VAR_DOMAIN, 0, NULL);
if (sym != NULL) if (sym != NULL)
{ {
@ -157,9 +157,9 @@ allocate_space_in_inferior (int len)
struct value * struct value *
value_cast (struct type *type, struct value *arg2) value_cast (struct type *type, struct value *arg2)
{ {
register enum type_code code1; enum type_code code1;
register enum type_code code2; enum type_code code2;
register int scalar; int scalar;
struct type *type2; struct type *type2;
int convert_to_boolean = 0; int convert_to_boolean = 0;
@ -480,7 +480,7 @@ value_fetch_lazy (struct value *val)
struct value * struct value *
value_assign (struct value *toval, struct value *fromval) value_assign (struct value *toval, struct value *fromval)
{ {
register struct type *type; struct type *type;
struct value *val; struct value *val;
char raw_buffer[MAX_REGISTER_SIZE]; char raw_buffer[MAX_REGISTER_SIZE];
int use_buffer = 0; int use_buffer = 0;
@ -800,7 +800,7 @@ value_of_variable (struct symbol *var, struct block *b)
struct value * struct value *
value_coerce_array (struct value *arg1) value_coerce_array (struct value *arg1)
{ {
register struct type *type = check_typedef (VALUE_TYPE (arg1)); struct type *type = check_typedef (VALUE_TYPE (arg1));
if (VALUE_LVAL (arg1) != lval_memory) if (VALUE_LVAL (arg1) != lval_memory)
error ("Attempt to take address of value not located in memory."); error ("Attempt to take address of value not located in memory.");
@ -920,7 +920,7 @@ value_ind (struct value *arg1)
CORE_ADDR CORE_ADDR
push_word (CORE_ADDR sp, ULONGEST word) push_word (CORE_ADDR sp, ULONGEST word)
{ {
register int len = DEPRECATED_REGISTER_SIZE; int len = DEPRECATED_REGISTER_SIZE;
char buffer[MAX_REGISTER_SIZE]; char buffer[MAX_REGISTER_SIZE];
store_unsigned_integer (buffer, len, word); store_unsigned_integer (buffer, len, word);
@ -971,9 +971,9 @@ push_bytes (CORE_ADDR sp, char *buffer, int len)
static CORE_ADDR static CORE_ADDR
value_push (register CORE_ADDR sp, struct value *arg) value_push (register CORE_ADDR sp, struct value *arg)
{ {
register int len = TYPE_LENGTH (VALUE_ENCLOSING_TYPE (arg)); int len = TYPE_LENGTH (VALUE_ENCLOSING_TYPE (arg));
register int container_len = len; int container_len = len;
register int offset; int offset;
/* How big is the container we're going to put this value in? */ /* How big is the container we're going to put this value in? */
if (PARM_BOUNDARY) if (PARM_BOUNDARY)
@ -1617,7 +1617,7 @@ struct value *
value_struct_elt (struct value **argp, struct value **args, value_struct_elt (struct value **argp, struct value **args,
char *name, int *static_memfuncp, char *err) char *name, int *static_memfuncp, char *err)
{ {
register struct type *t; struct type *t;
struct value *v; struct value *v;
COERCE_ARRAY (*argp); COERCE_ARRAY (*argp);
@ -1898,8 +1898,8 @@ find_overload_match (struct type **arg_types, int nargs, char *name, int method,
int num_fns = 0; /* Number of overloaded instances being considered */ int num_fns = 0; /* Number of overloaded instances being considered */
struct type *basetype = NULL; struct type *basetype = NULL;
int boffset; int boffset;
register int jj; int jj;
register int ix; int ix;
int static_offset; int static_offset;
struct cleanup *cleanups = NULL; struct cleanup *cleanups = NULL;
@ -2140,7 +2140,7 @@ destructor_name_p (const char *name, const struct type *type)
static int static int
check_field_in (register struct type *type, const char *name) check_field_in (register struct type *type, const char *name)
{ {
register int i; int i;
for (i = TYPE_NFIELDS (type) - 1; i >= TYPE_N_BASECLASSES (type); i--) for (i = TYPE_NFIELDS (type) - 1; i >= TYPE_N_BASECLASSES (type); i--)
{ {
@ -2181,7 +2181,7 @@ check_field_in (register struct type *type, const char *name)
int int
check_field (struct value *arg1, const char *name) check_field (struct value *arg1, const char *name)
{ {
register struct type *t; struct type *t;
COERCE_ARRAY (arg1); COERCE_ARRAY (arg1);
@ -2219,8 +2219,8 @@ value_struct_elt_for_reference (struct type *domain, int offset,
struct type *curtype, char *name, struct type *curtype, char *name,
struct type *intype) struct type *intype)
{ {
register struct type *t = curtype; struct type *t = curtype;
register int i; int i;
struct value *v; struct value *v;
if (TYPE_CODE (t) != TYPE_CODE_STRUCT if (TYPE_CODE (t) != TYPE_CODE_STRUCT

View file

@ -214,7 +214,7 @@ value_release_to_mark (struct value *mark)
struct value * struct value *
value_copy (struct value *arg) 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); struct value *val = allocate_value (encl_type);
VALUE_TYPE (val) = VALUE_TYPE (arg); VALUE_TYPE (val) = VALUE_TYPE (arg);
VALUE_LVAL (val) = VALUE_LVAL (arg); VALUE_LVAL (val) = VALUE_LVAL (arg);
@ -291,8 +291,8 @@ struct value *
access_value_history (int num) access_value_history (int num)
{ {
struct value_history_chunk *chunk; struct value_history_chunk *chunk;
register int i; int i;
register int absnum = num; int absnum = num;
if (absnum <= 0) if (absnum <= 0)
absnum += value_history_count; absnum += value_history_count;
@ -329,7 +329,7 @@ void
clear_value_history (void) clear_value_history (void)
{ {
struct value_history_chunk *next; struct value_history_chunk *next;
register int i; int i;
struct value *val; struct value *val;
while (value_history_chain) while (value_history_chain)
@ -347,7 +347,7 @@ clear_value_history (void)
static void static void
show_values (char *num_exp, int from_tty) show_values (char *num_exp, int from_tty)
{ {
register int i; int i;
struct value *val; struct value *val;
static int num = 1; static int num = 1;
@ -404,7 +404,7 @@ static struct internalvar *internalvars;
struct internalvar * struct internalvar *
lookup_internalvar (char *name) lookup_internalvar (char *name)
{ {
register struct internalvar *var; struct internalvar *var;
for (var = internalvars; var; var = var->next) for (var = internalvars; var; var = var->next)
if (strcmp (var->name, name) == 0) if (strcmp (var->name, name) == 0)
@ -436,7 +436,7 @@ void
set_internalvar_component (struct internalvar *var, int offset, int bitpos, set_internalvar_component (struct internalvar *var, int offset, int bitpos,
int bitsize, struct value *newval) int bitsize, struct value *newval)
{ {
register char *addr = VALUE_CONTENTS (var->value) + offset; char *addr = VALUE_CONTENTS (var->value) + offset;
if (bitsize) if (bitsize)
modify_field (addr, value_as_long (newval), modify_field (addr, value_as_long (newval),
@ -483,7 +483,7 @@ internalvar_name (struct internalvar *var)
void void
clear_internalvars (void) clear_internalvars (void)
{ {
register struct internalvar *var; struct internalvar *var;
while (internalvars) while (internalvars)
{ {
@ -498,7 +498,7 @@ clear_internalvars (void)
static void static void
show_convenience (char *ignore, int from_tty) show_convenience (char *ignore, int from_tty)
{ {
register struct internalvar *var; struct internalvar *var;
int varseen = 0; int varseen = 0;
for (var = internalvars; var; var = var->next) for (var = internalvars; var; var = var->next)
@ -664,9 +664,9 @@ value_as_address (struct value *val)
LONGEST LONGEST
unpack_long (struct type *type, const char *valaddr) unpack_long (struct type *type, const char *valaddr)
{ {
register enum type_code code = TYPE_CODE (type); enum type_code code = TYPE_CODE (type);
register int len = TYPE_LENGTH (type); int len = TYPE_LENGTH (type);
register int nosign = TYPE_UNSIGNED (type); int nosign = TYPE_UNSIGNED (type);
if (current_language->la_language == language_scm if (current_language->la_language == language_scm
&& is_scmvalue_type (type)) && is_scmvalue_type (type))
@ -879,7 +879,7 @@ value_primitive_field (struct value *arg1, int offset,
register int fieldno, register struct type *arg_type) register int fieldno, register struct type *arg_type)
{ {
struct value *v; struct value *v;
register struct type *type; struct type *type;
CHECK_TYPEDEF (arg_type); CHECK_TYPEDEF (arg_type);
type = TYPE_FIELD_TYPE (arg_type, fieldno); 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) int offset)
{ {
struct value *v; 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); char *physname = TYPE_FN_FIELD_PHYSNAME (f, j);
struct symbol *sym; struct symbol *sym;
struct minimal_symbol *msym; struct minimal_symbol *msym;
@ -1110,8 +1110,8 @@ struct value *
value_from_longest (struct type *type, register LONGEST num) value_from_longest (struct type *type, register LONGEST num)
{ {
struct value *val = allocate_value (type); struct value *val = allocate_value (type);
register enum type_code code; enum type_code code;
register int len; int len;
retry: retry:
code = TYPE_CODE (type); code = TYPE_CODE (type);
len = TYPE_LENGTH (type); len = TYPE_LENGTH (type);
@ -1182,8 +1182,8 @@ value_from_double (struct type *type, DOUBLEST num)
{ {
struct value *val = allocate_value (type); struct value *val = allocate_value (type);
struct type *base_type = check_typedef (type); struct type *base_type = check_typedef (type);
register enum type_code code = TYPE_CODE (base_type); enum type_code code = TYPE_CODE (base_type);
register int len = TYPE_LENGTH (base_type); int len = TYPE_LENGTH (base_type);
if (code == TYPE_CODE_FLT) if (code == TYPE_CODE_FLT)
{ {
@ -1280,7 +1280,7 @@ generic_use_struct_convention (int gcc_p, struct type *value_type)
int int
using_struct_return (struct type *value_type, int gcc_p) 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) if (code == TYPE_CODE_ERROR)
error ("Function return type unknown."); error ("Function return type unknown.");
@ -1302,7 +1302,7 @@ void
set_return_value (struct value *val) set_return_value (struct value *val)
{ {
struct type *type = check_typedef (VALUE_TYPE (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) if (code == TYPE_CODE_ERROR)
error ("Function return type unknown."); error ("Function return type unknown.");

View file

@ -298,7 +298,7 @@ vax_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
static CORE_ADDR static CORE_ADDR
vax_skip_prologue (CORE_ADDR pc) vax_skip_prologue (CORE_ADDR pc)
{ {
register int op = (unsigned char) read_memory_integer (pc, 1); int op = (unsigned char) read_memory_integer (pc, 1);
if (op == 0x11) if (op == 0x11)
pc += 2; /* skip brb */ pc += 2; /* skip brb */
if (op == 0x31) if (op == 0x31)

View file

@ -1441,7 +1441,7 @@ static struct symbol *
process_xcoff_symbol (register struct coff_symbol *cs, struct objfile *objfile) process_xcoff_symbol (register struct coff_symbol *cs, struct objfile *objfile)
{ {
struct symbol onesymbol; struct symbol onesymbol;
register struct symbol *sym = &onesymbol; struct symbol *sym = &onesymbol;
struct symbol *sym2 = NULL; struct symbol *sym2 = NULL;
char *name, *pp; char *name, *pp;