]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: rename find_pc_sect_compunit_symtab -> find_compunit_symtab_for_pc_sect
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 16 Oct 2025 00:07:59 +0000 (20:07 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 20 Oct 2025 19:11:39 +0000 (15:11 -0400)
Change-Id: Idb4941f6a24ddd97ee98d35a40bfbe7ceba82ec1
Approved-by: Kevin Buettner <kevinb@redhat.com>
gdb/block.c
gdb/blockframe.c
gdb/symtab.c
gdb/symtab.h

index 9ce14849566b0edcfae0a88598c79aca9b5c71d1..42ace7c60cfa5d7ae8cf7d138c78c0141648c9bc 100644 (file)
@@ -183,7 +183,7 @@ blockvector_for_pc_sect (CORE_ADDR pc, struct obj_section *section,
   if (cust == NULL)
     {
       /* First search all symtabs for one whose file contains our pc */
-      cust = find_pc_sect_compunit_symtab (pc, section);
+      cust = find_compunit_symtab_for_pc_sect (pc, section);
       if (cust == NULL)
        return 0;
     }
index 434208c7e269e6314cc72fbbf000fd98c54f0a44..654d635f8ba77aaf2d5bd56432904b6fbfb822e2 100644 (file)
@@ -236,7 +236,7 @@ find_pc_partial_function_sym (CORE_ADDR pc,
     goto return_cached_value;
 
   msymbol = lookup_minimal_symbol_by_pc_section (mapped_pc, section);
-  compunit_symtab = find_pc_sect_compunit_symtab (mapped_pc, section);
+  compunit_symtab = find_compunit_symtab_for_pc_sect (mapped_pc, section);
 
   if (compunit_symtab != NULL)
     {
index 0180c4eadac5bff560eab4ee0e3345c45e6490d3..8a65fdfb226ab129fdc864a39da68c94f8cb5a67 100644 (file)
@@ -2706,7 +2706,7 @@ iterate_over_symbols_terminated
    This will read in debug info as necessary.  */
 
 struct compunit_symtab *
-find_pc_sect_compunit_symtab (CORE_ADDR pc, struct obj_section *section)
+find_compunit_symtab_for_pc_sect (CORE_ADDR pc, struct obj_section *section)
 {
   struct compunit_symtab *best_cust = NULL;
   CORE_ADDR best_cust_range = 0;
@@ -2827,7 +2827,7 @@ find_pc_sect_compunit_symtab (CORE_ADDR pc, struct obj_section *section)
 struct compunit_symtab *
 find_compunit_symtab_for_pc (CORE_ADDR pc)
 {
-  return find_pc_sect_compunit_symtab (pc, find_pc_mapped_section (pc));
+  return find_compunit_symtab_for_pc_sect (pc, find_pc_mapped_section (pc));
 }
 
 /* See symtab.h.  */
@@ -3027,7 +3027,7 @@ find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent)
   symtab_and_line val;
   val.pspace = current_program_space;
 
-  compunit_symtab *cust = find_pc_sect_compunit_symtab (pc, section);
+  compunit_symtab *cust = find_compunit_symtab_for_pc_sect (pc, section);
   if (cust == NULL)
     {
       /* If no symbol information, return previous pc.  */
index c8c43b9f7cf47a27fa952d2f67eea458670521e5..795611eacf18097c0ee98ee07b53045f0821ba28 100644 (file)
@@ -2313,7 +2313,7 @@ extern struct compunit_symtab *find_compunit_symtab_for_pc (CORE_ADDR);
 /* lookup full symbol table by address and section.  */
 
 extern struct compunit_symtab *
-  find_pc_sect_compunit_symtab (CORE_ADDR, struct obj_section *);
+  find_compunit_symtab_for_pc_sect (CORE_ADDR, struct obj_section *);
 
 extern bool find_pc_line_pc_range (CORE_ADDR, CORE_ADDR *, CORE_ADDR *);