aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-01-12 20:55:32 +0000
committerDavid Carlton <carlton@bactrian.org>2003-01-12 20:55:32 +0000
commit94cd26f8b6647dc0168fe1a31e2d89d4d1f92ad7 (patch)
tree7c07bca07b994204957c5bf9393a802f2ea4922e /gdb
parent1ce79225f2465c40ae4441e2049c1207c5d487cc (diff)
downloadgdb-94cd26f8b6647dc0168fe1a31e2d89d4d1f92ad7.zip
gdb-94cd26f8b6647dc0168fe1a31e2d89d4d1f92ad7.tar.gz
gdb-94cd26f8b6647dc0168fe1a31e2d89d4d1f92ad7.tar.bz2
2003-01-12 David Carlton <carlton@bactrian.org>
* linespec.c (symtab_from_filename): Rename variable 's' to 'file_symtab'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/linespec.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1527413..4c2c4b6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-12 David Carlton <carlton@bactrian.org>
+
+ * linespec.c (symtab_from_filename): Rename variable 's' to
+ 'file_symtab'.
+
2003-01-12 Andrew Cagney <ac131313@redhat.com>
* d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
diff --git a/gdb/linespec.c b/gdb/linespec.c
index fc64ebe..e4dd2b1 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1177,7 +1177,7 @@ symtab_from_filename (char **argptr, char *p, int is_quote_enclosed)
{
char *p1;
char *copy;
- struct symtab *s;
+ struct symtab *file_symtab;
p1 = p;
while (p != *argptr && p[-1] == ' ')
@@ -1193,8 +1193,8 @@ symtab_from_filename (char **argptr, char *p, int is_quote_enclosed)
copy[p - *argptr] = 0;
/* Find that file's data. */
- s = lookup_symtab (copy);
- if (s == 0)
+ file_symtab = lookup_symtab (copy);
+ if (file_symtab == 0)
{
if (!have_full_symbols () && !have_partial_symbols ())
error ("No symbol table is loaded. Use the \"file\" command.");
@@ -1207,7 +1207,7 @@ symtab_from_filename (char **argptr, char *p, int is_quote_enclosed)
p++;
*argptr = p;
- return s;
+ return file_symtab;
}