diff options
author | Tom Tromey <tromey@adacore.com> | 2023-01-19 06:14:49 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-02-08 08:20:12 -0700 |
commit | d401e7bf04c0949dcc5e3d83143b75efc19d5f1e (patch) | |
tree | 12aa55e8db5685c3dbe19b166db11a19c9e51a56 /gdb/symtab.h | |
parent | 83bad3162d7303b51e2ec9b49cb9e78c72d27aa3 (diff) | |
download | binutils-d401e7bf04c0949dcc5e3d83143b75efc19d5f1e.zip binutils-d401e7bf04c0949dcc5e3d83143b75efc19d5f1e.tar.gz binutils-d401e7bf04c0949dcc5e3d83143b75efc19d5f1e.tar.bz2 |
Remove compunit_symtab::m_block_line_section
The previous patch hard-coded SECT_OFF_TEXT into the buildsym code.
After this, it's clear that there is only one caller of
compunit_symtab::set_block_line_section, and it always passes
SECT_OFF_TEXT. So, remove compunit_symtab::m_block_line_section and
use SECT_OFF_TEXT instead.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 484644f..50ce752 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1786,16 +1786,6 @@ struct compunit_symtab m_blockvector = blockvector; } - int block_line_section () const - { - return m_block_line_section; - } - - void set_block_line_section (int block_line_section) - { - m_block_line_section = block_line_section; - } - bool locations_valid () const { return m_locations_valid; @@ -1884,10 +1874,6 @@ struct compunit_symtab all symtabs in a given compilation unit. */ struct blockvector *m_blockvector; - /* Section in objfile->section_offsets for the blockvector and - the linetable. Probably always SECT_OFF_TEXT. */ - int m_block_line_section; - /* Symtab has been compiled with both optimizations and debug info so that GDB may stop skipping prologues as variables locations are valid already at function entry points. */ |