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/buildsym.c | |
parent | 83bad3162d7303b51e2ec9b49cb9e78c72d27aa3 (diff) | |
download | gdb-d401e7bf04c0949dcc5e3d83143b75efc19d5f1e.zip gdb-d401e7bf04c0949dcc5e3d83143b75efc19d5f1e.tar.gz gdb-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/buildsym.c')
-rw-r--r-- | gdb/buildsym.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 41df0f0..d82c767 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -974,8 +974,6 @@ buildsym_compunit::end_compunit_symtab_with_blockvector set_block_compunit_symtab (b, cu); } - cu->set_block_line_section (SECT_OFF_TEXT (m_objfile)); - cu->set_macro_table (release_macros ()); /* Default any symbols without a specified symtab to the primary symtab. */ |