Introduce program_space::add_objfile
[deliverable/binutils-gdb.git] / gdb / progspace.h
index c281648b99bff35a98f0c3e10224a6e34ee99357..bb10c4bbd26c74dd001258ddea5804642e0f60cf 100644 (file)
@@ -165,6 +165,12 @@ struct program_space
     return objfiles_safe_range (objfiles_head);
   }
 
+  /* Add OBJFILE to the list of objfiles, putting it just before
+     BEFORE.  If BEFORE is nullptr, it will go at the end of the
+     list.  */
+  void add_objfile (struct objfile *objfile, struct objfile *before);
+
+
   /* Pointer to next in linked list.  */
   struct program_space *next = NULL;
 
This page took 0.024106 seconds and 4 git commands to generate.