[commit/ob] Fix comments in decode_line_1

Joel Brobecker brobecker@adacore.com
Thu May 15 20:12:00 GMT 2008


Hello,

We noticed a couple of comments were out of sync with the actual name
of a variable being used in the code. So I fixed them thusly:

2008-05-15  Joel Brobecker  <brobecker@adacore.com>

        * linespec.c (decode_line_1): Fix a couple of comments.

-- 
Joel
-------------- next part --------------
Index: linespec.c
===================================================================
RCS file: /cvs/src/src/gdb/linespec.c,v
retrieving revision 1.77
diff -u -p -r1.77 linespec.c
--- linespec.c	3 May 2008 00:37:34 -0000	1.77
+++ linespec.c	15 May 2008 19:23:11 -0000
@@ -771,7 +771,7 @@ decode_line_1 (char **argptr, int funfir
 	return decode_compound (argptr, funfirstline, canonical,
 				saved_arg, p);
 
-      /* No, the first part is a filename; set s to be that file's
+      /* No, the first part is a filename; set file_symtab to be that file's
 	 symtab.  Also, move argptr past the filename.  */
 
       file_symtab = symtab_from_filename (argptr, p, is_quote_enclosed, 
@@ -812,7 +812,7 @@ decode_line_1 (char **argptr, int funfir
     }
 #endif
 
-  /* S is specified file's symtab, or 0 if no file specified.
+  /* file_symtab is specified file's symtab, or 0 if no file specified.
      arg no longer contains the file name.  */
 
   /* Check whether arg is all digits (and sign).  */


More information about the Gdb-patches mailing list