move the "main" data into the per-BFD object
[deliverable/binutils-gdb.git] / gdb / objfiles.h
index d448c9ef38f16b6104d948ed5848d3f5ad95091b..2de2f8d01fef5f9fc9cc7dbcf5e87d1cd9848dfe 100644 (file)
@@ -203,6 +203,13 @@ struct objfile_per_bfd_storage
      containing the entry point, and the scope of the user's main() func.  */
 
   struct entry_info ei;
+
+  /* The name and language of any "main" found in this objfile.  The
+     name can be NULL, which means that the information was not
+     recorded.  */
+
+  const char *name_of_main;
+  enum language language_of_main;
 };
 
 /* Master structure for keeping track of each file from which
@@ -691,4 +698,9 @@ void set_objfile_per_bfd (struct objfile *obj);
 
 const char *objfile_name (const struct objfile *objfile);
 
+/* Set the objfile's notion of the "main" name and language.  */
+
+extern void set_objfile_main_name (struct objfile *objfile,
+                                  const char *name, enum language lang);
+
 #endif /* !defined (OBJFILES_H) */
This page took 0.023983 seconds and 4 git commands to generate.