Split struct symtab into two: struct symtab and compunit_symtab.
[deliverable/binutils-gdb.git] / gdb / blockframe.c
index 5de116e697adf20b3116ebf491e58fd5669e6034..270ce0e0b4334c92f7114335dbe2306075b19cb0 100644 (file)
@@ -195,7 +195,7 @@ find_pc_partial_function_gnu_ifunc (CORE_ADDR pc, const char **name,
   struct obj_section *section;
   struct symbol *f;
   struct bound_minimal_symbol msymbol;
-  struct symtab *symtab = NULL;
+  struct compunit_symtab *compunit_symtab = NULL;
   struct objfile *objfile;
   int i;
   CORE_ADDR mapped_pc;
@@ -220,13 +220,17 @@ find_pc_partial_function_gnu_ifunc (CORE_ADDR pc, const char **name,
   ALL_OBJFILES (objfile)
   {
     if (objfile->sf)
-      symtab = objfile->sf->qf->find_pc_sect_symtab (objfile, msymbol,
-                                                    mapped_pc, section, 0);
-    if (symtab)
+      {
+       compunit_symtab
+         = objfile->sf->qf->find_pc_sect_compunit_symtab (objfile, msymbol,
+                                                          mapped_pc, section,
+                                                          0);
+      }
+    if (compunit_symtab != NULL)
       break;
   }
 
-  if (symtab)
+  if (compunit_symtab != NULL)
     {
       /* Checking whether the msymbol has a larger value is for the
         "pathological" case mentioned in print_frame_info.  */
This page took 0.03557 seconds and 4 git commands to generate.