summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/buildsym.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index d82c7672f7c..8dbb327f0eb 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -245,6 +245,7 @@ buildsym_compunit::finish_block_internal
struct type *ftype = symbol->type ();
struct mdict_iterator miter;
symbol->set_value_block (block);
+ symbol->set_section_index (SECT_OFF_TEXT (m_objfile));
block->set_function (symbol);
if (ftype->num_fields () <= 0)