* breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
[deliverable/binutils-gdb.git] / gdb / objfiles.c
index a1fb22f742c7716310bae78b1129618cd9a37d2f..53ac034b16a48b3ad4551a01c279d5316e9880b4 100644 (file)
@@ -163,6 +163,20 @@ free_objfile (objfile)
   (*objfile -> free) (objfile);
 }
 
+
+/* Free all the object files at once.  */
+
+void
+free_all_objfiles ()
+{
+  struct objfile *objfile, *temp;
+
+  ALL_OBJFILES_SAFE (objfile, temp)
+    {
+      free_objfile (objfile);
+    }
+}
+
 /* Many places in gdb want to test just to see if we have any partial
    symbols available.  This function returns zero if none are currently
    available, nonzero otherwise. */
This page took 0.023632 seconds and 4 git commands to generate.