]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove minimal_symbol_reader::record
authorTom Tromey <tom@tromey.com>
Sun, 8 Mar 2026 12:22:59 +0000 (06:22 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 9 Mar 2026 13:56:47 +0000 (07:56 -0600)
After the various symbol reader removals, it seems that
minimal_symbol_reader::record is no longer needed.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/minsyms.c
gdb/minsyms.h

index dff2cb4a045e1a0381544e0b376d73acaa3213f3..71cd1bb4c2bd8c776bb998af87ac4ab00c08c623 100644 (file)
@@ -1080,38 +1080,6 @@ minimal_symbol_reader::minimal_symbol_reader (struct objfile *obj)
 {
 }
 
-/* See minsyms.h.  */
-
-void
-minimal_symbol_reader::record (const char *name, unrelocated_addr address,
-                              enum minimal_symbol_type ms_type)
-{
-  int section;
-
-  switch (ms_type)
-    {
-    case mst_text:
-    case mst_text_gnu_ifunc:
-    case mst_file_text:
-    case mst_solib_trampoline:
-      section = SECT_OFF_TEXT (m_objfile);
-      break;
-    case mst_data:
-    case mst_data_gnu_ifunc:
-    case mst_file_data:
-      section = SECT_OFF_DATA (m_objfile);
-      break;
-    case mst_bss:
-    case mst_file_bss:
-      section = SECT_OFF_BSS (m_objfile);
-      break;
-    default:
-      section = -1;
-    }
-
-  record_with_info (name, address, ms_type, section);
-}
-
 /* Convert an enumerator of type minimal_symbol_type to its string
    representation.  */
 
index 4eb795ce095f7bc64f4485e126e5c38c35586b2d..8f38cc7137fc1c88040e06ec056be1687cb6e994 100644 (file)
@@ -123,16 +123,6 @@ class minimal_symbol_reader
                                      enum minimal_symbol_type ms_type,
                                      int section);
 
-  /* Like record_full, but:
-     - computes the length of NAME
-     - passes COPY_NAME = true,
-     - and passes a default SECTION, depending on the type
-
-     This variant does not return the new symbol.  */
-
-  void record (const char *name, unrelocated_addr address,
-              enum minimal_symbol_type ms_type);
-
   /* Like record_full, but:
      - computes the length of NAME
      - passes COPY_NAME = true.