This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] linespec.c: s -> file_symtab, again


When doing that s -> file_symtab variable renaming on Friday, I
neglected to rename the variable in the function symtab_from_filename
that actually generates file_symtab.  So here's a patch for that.

Tested on i686-pc-linux-gnu/GCC3.1/DWARF-2; committed as obvious.

David Carlton
carlton@math.stanford.edu

2003-01-12  David Carlton  <carlton@bactrian.org>

	* linespec.c (symtab_from_filename): Rename variable 's' to
	'file_symtab'.

Index: linespec.c
===================================================================
RCS file: /cvs/src/src/gdb/linespec.c,v
retrieving revision 1.36
diff -u -p -r1.36 linespec.c
--- linespec.c	11 Jan 2003 01:01:04 -0000	1.36
+++ linespec.c	12 Jan 2003 20:54:05 -0000
@@ -1177,7 +1177,7 @@ symtab_from_filename (char **argptr, cha
 {
   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, cha
     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, cha
     p++;
   *argptr = p;
 
-  return s;
+  return file_symtab;
 }
 
 ^L


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]