[gdb/symtab] Fix disassembly of non-contiguous functions
[deliverable/binutils-gdb.git] / gdb / blockframe.c
index 4f8fa42dc6bd0508e84d0df96d73f8d5f4e316e4..09c3eed48db9d4d638befa8b39f84ed690ad10c7 100644 (file)
@@ -236,19 +236,7 @@ find_pc_partial_function (CORE_ADDR pc, const char **name, CORE_ADDR *address,
     goto return_cached_value;
 
   msymbol = lookup_minimal_symbol_by_pc_section (mapped_pc, section);
-  for (objfile *objfile : current_program_space->objfiles ())
-    {
-      if (objfile->sf)
-       {
-         compunit_symtab
-           = objfile->sf->qf->find_pc_sect_compunit_symtab (objfile, msymbol,
-                                                            mapped_pc,
-                                                            section,
-                                                            0);
-       }
-      if (compunit_symtab != NULL)
-       break;
-    }
+  compunit_symtab = find_pc_sect_compunit_symtab (mapped_pc, section);
 
   if (compunit_symtab != NULL)
     {
This page took 0.02437 seconds and 4 git commands to generate.