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

index 7c421a0ad3f7408ba8b1a4fd48f98758759f2bda..9374cb15184f4bba75b6b9e548c240c3f22ef663 100644 (file)
@@ -131,7 +131,7 @@ get_frame_function (const frame_info_ptr &frame)
    Returns 0 if function is not known.  */
 
 struct symbol *
-find_pc_sect_function (CORE_ADDR pc, struct obj_section *section)
+find_symbol_for_pc_sect (CORE_ADDR pc, struct obj_section *section)
 {
   const struct block *b = block_for_pc_sect (pc, section);
 
@@ -147,7 +147,7 @@ find_pc_sect_function (CORE_ADDR pc, struct obj_section *section)
 struct symbol *
 find_symbol_for_pc (CORE_ADDR pc)
 {
-  return find_pc_sect_function (pc, find_pc_mapped_section (pc));
+  return find_symbol_for_pc_sect (pc, find_pc_mapped_section (pc));
 }
 
 /* See symtab.h.  */
@@ -249,7 +249,7 @@ find_pc_partial_function_sym (CORE_ADDR pc,
         address of the function.  This will happen when the function
         has more than one range and the entry pc is not within the
         lowest range of addresses.  */
-      f = find_pc_sect_function (mapped_pc, section);
+      f = find_symbol_for_pc_sect (mapped_pc, section);
       if (f != NULL
          && (msymbol.minsym == NULL
              || (f->value_block ()->entry_pc ()
index bfcfc2404b0bd52fb2565306840447ece04f2155..de98a2327d7e3bc7fa0f122e7fff5c4a070facef 100644 (file)
@@ -12891,7 +12891,7 @@ update_static_tracepoint (tracepoint *tp, struct symtab_and_line sal)
                   tp->number, tp->static_trace_marker_id.c_str ());
 
          symtab_and_line sal2 = find_pc_line (tpmarker->address, 0);
-         sym = find_pc_sect_function (tpmarker->address, NULL);
+         sym = find_symbol_for_pc_sect (tpmarker->address, NULL);
          uiout->text ("Now in ");
          if (sym)
            {
index e27ccd05d4fbda32c7b531587001bcfddefe8a54..047833a261d9ac2608cb97560aa1bf1f7428f5f9 100644 (file)
@@ -636,7 +636,7 @@ build_address_symbolic (struct gdbarch *gdbarch,
      symbols anyway).  */
   bound_minimal_symbol msymbol
     = lookup_minimal_symbol_by_pc_section (addr, section);
-  symbol = find_pc_sect_function (addr, section);
+  symbol = find_symbol_for_pc_sect (addr, section);
 
   if (symbol)
     {
index 9109103da41639b7c5a6a7979859a4b1388d66f2..386107451be341762aa0ed66113d846755552ab1 100644 (file)
@@ -3700,7 +3700,7 @@ skip_prologue_sal (struct symtab_and_line *sal)
 
   switch_to_program_space_and_thread (sal->pspace);
 
-  symbol *sym = find_pc_sect_function (sal->pc, sal->section);
+  symbol *sym = find_symbol_for_pc_sect (sal->pc, sal->section);
   objfile *objfile;
   CORE_ADDR pc;
   obj_section *section;
index ea34228df12df8a24c892daf69e7eaca4a506906..5d64e2149c0fabc62b2b0632f9208ab60edfe551 100644 (file)
@@ -2212,7 +2212,7 @@ extern struct symbol *find_symbol_for_pc (CORE_ADDR);
    return value will not be an inlined function; the containing
    function will be returned instead.  */
 
-extern struct symbol *find_pc_sect_function (CORE_ADDR, struct obj_section *);
+extern struct symbol *find_symbol_for_pc_sect (CORE_ADDR, struct obj_section *);
 
 /* lookup the function symbol corresponding to the address and
    section.  The return value will be the closest enclosing function,
index ade745a0865300d8a3894750de8993b888630e2a..ce5418b87913f2cf5affd604a17c00d952d36c0e 100644 (file)
@@ -3618,7 +3618,7 @@ print_one_static_tracepoint_marker (int count,
   uiout->field_core_addr ("addr", marker.gdbarch, marker.address);
 
   sal = find_pc_line (marker.address, 0);
-  sym = find_pc_sect_function (marker.address, NULL);
+  sym = find_symbol_for_pc_sect (marker.address, NULL);
   if (sym)
     {
       uiout->text ("in ");