*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / objfiles.h
index 6072348477f7bbdd38f35b50c0e2a2c09aceafd0..7b3cf0789a3623f1272ce3fb99475fa8f02b5fea 100644 (file)
@@ -603,6 +603,14 @@ extern void *objfile_data (struct objfile *objfile,
   ALL_OBJFILES (objfile)        \
     ALL_OBJFILE_SYMTABS (objfile, s)
 
+/* Traverse all symtabs in all objfiles, skipping included files
+   (which share a blockvector with their primary symtab).  */
+
+#define ALL_PRIMARY_SYMTABS(objfile, s) \
+  ALL_OBJFILES (objfile)               \
+    ALL_OBJFILE_SYMTABS (objfile, s)   \
+      if ((s)->primary)
+
 /* Traverse all psymtabs in all objfiles.  */
 
 #define        ALL_PSYMTABS(objfile, p) \
This page took 0.025636 seconds and 4 git commands to generate.