From bed351f20f6c7685f7d768d024d2097123c02e71 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 9 Jan 2026 16:56:10 -0500 Subject: [PATCH] gdb/buildsym: remove get_last_source_start_addr/set_last_source_start_addr methods 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 --- gdb/buildsym.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/gdb/buildsym.h b/gdb/buildsym.h index fe169ee14d5..474b57a9ef8 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -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. */