Split struct symtab into two: struct symtab and compunit_symtab.
[deliverable/binutils-gdb.git] / gdb / linespec.c
index bcfcc2a7a9c8a4f5f43321cd880213a455a78616..82384cab6207efb62d632abf48741e74beea6e3d 100644 (file)
@@ -1023,7 +1023,7 @@ iterate_over_all_matching_symtabs (struct linespec_state *state,
 
     ALL_OBJFILES (objfile)
     {
-      struct symtab *symtab;
+      struct compunit_symtab *cu;
 
       if (objfile->sf)
        objfile->sf->qf->expand_symtabs_matching (objfile, NULL,
@@ -1031,8 +1031,10 @@ iterate_over_all_matching_symtabs (struct linespec_state *state,
                                                  ALL_DOMAIN,
                                                  &matcher_data);
 
-      ALL_OBJFILE_PRIMARY_SYMTABS (objfile, symtab)
+      ALL_OBJFILE_COMPUNITS (objfile, cu)
        {
+         struct symtab *symtab = COMPUNIT_FILETABS (cu);
+
          iterate_over_file_blocks (symtab, name, domain, callback, data);
 
          if (include_inline)
This page took 0.026069 seconds and 4 git commands to generate.