aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-09-16 18:56:35 +0000
committerAndrew Cagney <cagney@redhat.com>2003-09-16 18:56:35 +0000
commitaa1ee363bce1eac43bf9824069e231d7113f7453 (patch)
tree525611e316e7caf3efd4ea5a1ebcdf74dbf3b07c /gdb/source.c
parentf2ea0907de3f3f7f59a0efdea58305184917e6cf (diff)
downloadgdb-aa1ee363bce1eac43bf9824069e231d7113f7453.zip
gdb-aa1ee363bce1eac43bf9824069e231d7113f7453.tar.gz
gdb-aa1ee363bce1eac43bf9824069e231d7113f7453.tar.bz2
2003-09-16 Andrew Cagney <cagney@redhat.com>
* buildsym.c: Remove more occurances of "register". * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto. * environ.c, eval.c, f-valprint.c, findvar.c: Ditto. * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto. * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto. * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto. * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto. * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto. * utils.c, valops.c, values.c, xcoffread.c: Ditto.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/source.c b/gdb/source.c
index c34853f..5638839 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -219,7 +219,7 @@ clear_current_source_symtab_and_line (void)
before we need to would make things slower than necessary. */
void
-select_source_symtab (register struct symtab *s)
+select_source_symtab (struct symtab *s)
{
struct symtabs_and_lines sals;
struct symtab_and_line sal;
@@ -418,7 +418,7 @@ add_path (char *dirname, char **which_path, int parse_separators)
do
{
char *name = dirname;
- register char *p;
+ char *p;
struct stat st;
{
@@ -526,7 +526,7 @@ add_path (char *dirname, char **which_path, int parse_separators)
append:
{
- register unsigned int len = strlen (name);
+ unsigned int len = strlen (name);
p = *which_path;
while (1)
@@ -1019,7 +1019,7 @@ source_line_charpos (struct symtab *s, int line)
/* Return the line number of character position POS in symtab S. */
int
-source_charpos_line (register struct symtab *s, register int chr)
+source_charpos_line (struct symtab *s, int chr)
{
int line = 0;
int *lnp;
@@ -1390,7 +1390,7 @@ forward_search_command (char *regex, int from_tty)
while (1)
{
static char *buf = NULL;
- register char *p;
+ char *p;
int cursize, newsize;
cursize = 256;
@@ -1487,7 +1487,7 @@ reverse_search_command (char *regex, int from_tty)
{
/* FIXME!!! We walk right off the end of buf if we get a long line!!! */
char buf[4096]; /* Should be reasonable??? */
- register char *p = buf;
+ char *p = buf;
c = getc (stream);
if (c == EOF)