use remote-utils facilities for baud_rate
[deliverable/binutils-gdb.git] / gdb / buildsym.c
index be13a9cd8ace47cadd13e968b210bedcc19a8198..e8804cb57b39ebe85acd045bac7144d5d083d127 100644 (file)
@@ -432,8 +432,8 @@ start_subfile (name, dirname)
 
       p = strrchr (subfile->name, '.');
       if (p != NULL
-         && (p[1] == 'C' && p[2] == '\0'
-             || p[1] == 'c' && p[2] == 'c' && p[3] == '\0'))
+         && ((p[1] == 'C' && p[2] == '\0')
+             || (p[1] == 'c' && p[2] == 'c' && p[3] == '\0')))
        for (s = subfiles; s != NULL; s = s->next)
          if (s->language == language_c)
            s->language = language_cplus;
@@ -529,7 +529,8 @@ pop_subfile ()
 }
 
 \f
-/* Manage the vector of line numbers for each subfile.  */
+/* Add a linetable entry for line number LINE and address PC to the line
+   vector for SUBFILE.  */
 
 void
 record_line (subfile, line, pc)
@@ -652,7 +653,7 @@ end_symtab (end_addr, sort_pending, sort_linevec, objfile, section)
      struct objfile *objfile;
      int section;
 {
-  register struct symtab *symtab;
+  register struct symtab *symtab = NULL;
   register struct blockvector *blockvector;
   register struct subfile *subfile;
   register struct context_stack *cstk;
@@ -750,7 +751,7 @@ end_symtab (end_addr, sort_pending, sort_linevec, objfile, section)
 
   for (subfile = subfiles; subfile; subfile = nextsub)
     {
-      int linetablesize;
+      int linetablesize = 0;
       /* If we have blocks of symbols, make a symtab.
         Otherwise, just ignore this file and any line number info in it.  */
       symtab = NULL;
This page took 0.025833 seconds and 4 git commands to generate.