[gdb] Print user/includes fields for maint commands
[deliverable/binutils-gdb.git] / gdb / symtab.h
index 771b5ec5bf7e26863e777ed71d17be6dc0c3ab4b..18be5d51b85397ce5a1f819ff9090636e569266f 100644 (file)
@@ -1513,6 +1513,13 @@ extern struct symtab *
 
 extern enum language compunit_language (const struct compunit_symtab *cust);
 
+/* Return true if this symtab is the "main" symtab of its compunit_symtab.  */
+
+static inline bool
+is_main_symtab_of_compunit_symtab (struct symtab *symtab)
+{
+  return symtab == COMPUNIT_FILETABS (SYMTAB_COMPUNIT (symtab));
+}
 \f
 
 /* The virtual function table is now an array of structures which have the
This page took 0.025301 seconds and 4 git commands to generate.