aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym-legacy.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-01-13 09:08:41 -0700
committerTom Tromey <tromey@adacore.com>2023-02-08 08:20:12 -0700
commit83bad3162d7303b51e2ec9b49cb9e78c72d27aa3 (patch)
tree816e4d1e981f536b0286d6b73e27a608b4bf451e /gdb/buildsym-legacy.c
parentb8a6e9878141f5f1ac6c790e85257eadd51fff8f (diff)
downloadbinutils-83bad3162d7303b51e2ec9b49cb9e78c72d27aa3.zip
binutils-83bad3162d7303b51e2ec9b49cb9e78c72d27aa3.tar.gz
binutils-83bad3162d7303b51e2ec9b49cb9e78c72d27aa3.tar.bz2
Do not pass section index to end_compunit_symtab
Right now, the section index passed to end_compunit_symtab is always SECT_OFF_TEXT. Remove this parameter and simply always use SECT_OFF_TEXT.
Diffstat (limited to 'gdb/buildsym-legacy.c')
-rw-r--r--gdb/buildsym-legacy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/buildsym-legacy.c b/gdb/buildsym-legacy.c
index e4194b6..cb733e7 100644
--- a/gdb/buildsym-legacy.c
+++ b/gdb/buildsym-legacy.c
@@ -171,11 +171,11 @@ free_buildsym_compunit (void)
}
struct compunit_symtab *
-end_compunit_symtab (CORE_ADDR end_addr, int section)
+end_compunit_symtab (CORE_ADDR end_addr)
{
gdb_assert (buildsym_compunit != nullptr);
struct compunit_symtab *result
- = buildsym_compunit->end_compunit_symtab (end_addr, section);
+ = buildsym_compunit->end_compunit_symtab (end_addr);
free_buildsym_compunit ();
return result;
}