From fa01c85e7bf857f040017667dbca5a29fffffc94 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Mon, 18 Mar 2024 12:56:15 +0400 Subject: [PATCH] Revert "Set section index when setting a symbol's block" This reverts commit 5abbfa982215a5bcd2bf2c0b92cbb005464dc927. --- gdb/buildsym.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 02d6848f3a4..7d671095828 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -244,7 +244,6 @@ buildsym_compunit::finish_block_internal { struct type *ftype = symbol->type (); symbol->set_value_block (block); - symbol->set_section_index (SECT_OFF_TEXT (m_objfile)); block->set_function (symbol); if (ftype->num_fields () <= 0)