]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/buildsym: remove get_last_source_start_addr/set_last_source_start_addr methods
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 9 Jan 2026 21:56:10 +0000 (16:56 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 16 Jan 2026 17:34:46 +0000 (12:34 -0500)
Nothing seems to use this anymore.  However, the private field is still
used internally by buildsym, so keep it.

Change-Id: Ie6fbd96110a3c5603359a483855bbecc4008e5b4
Approved-By: Tom Tromey <tom@tromey.com>
gdb/buildsym.h

index fe169ee14d51eb51f5b49db296f94692605f30bb..474b57a9ef825d9d6853320aa4354cf8c4dee069 100644 (file)
@@ -219,16 +219,6 @@ struct buildsym_compunit
     return m_compunit_symtab;
   }
 
-  void set_last_source_start_addr (CORE_ADDR addr)
-  {
-    m_last_source_start_addr = addr;
-  }
-
-  CORE_ADDR get_last_source_start_addr ()
-  {
-    return m_last_source_start_addr;
-  }
-
   struct using_direct **get_local_using_directives ()
   {
     return &m_local_using_directives;
@@ -357,9 +347,9 @@ private:
      empty symtab from being tossed.  */
   bool m_have_line_numbers = false;
 
-  /* Core address of start of text of current source file.  This too
-     comes from the N_SO symbol.  For Dwarf it typically comes from the
-     DW_AT_low_pc attribute of a DW_TAG_compile_unit DIE.  */
+  /* Core address of start of text of current source file.  For DWARF it
+     typically comes from the DW_AT_low_pc attribute of a
+     DW_TAG_compile_unit DIE.  */
   CORE_ADDR m_last_source_start_addr;
 
   /* Stack of subfile names.  */