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:
parent
256ab948f5
commit
52f0bd74b2
85 changed files with 575 additions and 549 deletions
38
gdb/source.c
38
gdb/source.c
|
@ -317,8 +317,8 @@ show_directories (char *ignore, int from_tty)
|
|||
void
|
||||
forget_cached_source_info (void)
|
||||
{
|
||||
register struct symtab *s;
|
||||
register struct objfile *objfile;
|
||||
struct symtab *s;
|
||||
struct objfile *objfile;
|
||||
struct partial_symtab *pst;
|
||||
|
||||
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
|
||||
source_info (char *ignore, int from_tty)
|
||||
{
|
||||
register struct symtab *s = current_source_symtab;
|
||||
struct symtab *s = current_source_symtab;
|
||||
|
||||
if (!s)
|
||||
{
|
||||
|
@ -660,11 +660,11 @@ openp (const char *path, int try_cwd_first, const char *string,
|
|||
int mode, int prot,
|
||||
char **filename_opened)
|
||||
{
|
||||
register int fd;
|
||||
register char *filename;
|
||||
int fd;
|
||||
char *filename;
|
||||
const char *p;
|
||||
const char *p1;
|
||||
register int len;
|
||||
int len;
|
||||
int alloclen;
|
||||
|
||||
if (!path)
|
||||
|
@ -907,7 +907,7 @@ void
|
|||
find_source_lines (struct symtab *s, int desc)
|
||||
{
|
||||
struct stat st;
|
||||
register char *data, *p, *end;
|
||||
char *data, *p, *end;
|
||||
int nlines = 0;
|
||||
int lines_allocated = 1000;
|
||||
int *line_charpos;
|
||||
|
@ -1021,8 +1021,8 @@ source_line_charpos (struct symtab *s, int line)
|
|||
int
|
||||
source_charpos_line (register struct symtab *s, register int chr)
|
||||
{
|
||||
register int line = 0;
|
||||
register int *lnp;
|
||||
int line = 0;
|
||||
int *lnp;
|
||||
|
||||
if (s == 0 || s->line_charpos == 0)
|
||||
return 0;
|
||||
|
@ -1049,7 +1049,7 @@ source_charpos_line (register struct symtab *s, register int chr)
|
|||
static int
|
||||
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);
|
||||
if (desc < 0)
|
||||
|
@ -1107,9 +1107,9 @@ static void print_source_lines_base (struct symtab *s, int line, int stopline,
|
|||
static void
|
||||
print_source_lines_base (struct symtab *s, int line, int stopline, int noerror)
|
||||
{
|
||||
register int c;
|
||||
register int desc;
|
||||
register FILE *stream;
|
||||
int c;
|
||||
int desc;
|
||||
FILE *stream;
|
||||
int nlines = stopline - line;
|
||||
|
||||
/* 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
|
||||
forward_search_command (char *regex, int from_tty)
|
||||
{
|
||||
register int c;
|
||||
register int desc;
|
||||
register FILE *stream;
|
||||
int c;
|
||||
int desc;
|
||||
FILE *stream;
|
||||
int line;
|
||||
char *msg;
|
||||
|
||||
|
@ -1447,9 +1447,9 @@ forward_search_command (char *regex, int from_tty)
|
|||
static void
|
||||
reverse_search_command (char *regex, int from_tty)
|
||||
{
|
||||
register int c;
|
||||
register int desc;
|
||||
register FILE *stream;
|
||||
int c;
|
||||
int desc;
|
||||
FILE *stream;
|
||||
int line;
|
||||
char *msg;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue