Fix buffer overflow regression due to minsym malloc-ed instead of obstack-ed.
[deliverable/binutils-gdb.git] / gdb / symfile-debug.c
index b71fa8b0010a3b70ba98852cf7ae17e35967d1f4..5b3ae926504e7b2548c5d587e48b0bcef5e7d2b9 100644 (file)
@@ -240,7 +240,7 @@ static void
 debug_qf_map_matching_symbols (struct objfile *objfile,
                               const char *name, domain_enum domain,
                               int global,
-                              int (*callback) (struct block *,
+                              int (*callback) (const struct block *,
                                                struct symbol *, void *),
                               void *data,
                               symbol_name_match_type match,
@@ -662,7 +662,7 @@ set_debug_symfile (const char *args, int from_tty, struct cmd_list_element *c)
   struct program_space *pspace;
 
   ALL_PSPACES (pspace)
-    for (objfile *objfile : all_objfiles (pspace))
+    for (objfile *objfile : pspace->objfiles ())
       {
        if (debug_symfile)
          {
This page took 0.025459 seconds and 4 git commands to generate.