diff options
author | Tom Tromey <tromey@adacore.com> | 2023-01-13 09:08:41 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-02-08 08:20:12 -0700 |
commit | 83bad3162d7303b51e2ec9b49cb9e78c72d27aa3 (patch) | |
tree | 816e4d1e981f536b0286d6b73e27a608b4bf451e /gdb/ctfread.c | |
parent | b8a6e9878141f5f1ac6c790e85257eadd51fff8f (diff) | |
download | binutils-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/ctfread.c')
-rw-r--r-- | gdb/ctfread.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/ctfread.c b/gdb/ctfread.c index 97a0df9..69906c9 100644 --- a/gdb/ctfread.c +++ b/gdb/ctfread.c @@ -1258,18 +1258,17 @@ ctf_start_compunit_symtab (ctf_psymtab *pst, } /* Finish reading symbol/type definitions in CTF format. - END_ADDR is the end address of the file's text. SECTION is - the .text section number. */ + END_ADDR is the end address of the file's text. */ static struct compunit_symtab * ctf_end_compunit_symtab (ctf_psymtab *pst, - CORE_ADDR end_addr, int section) + CORE_ADDR end_addr) { struct ctf_context *ccp; ccp = &pst->context; struct compunit_symtab *result - = ccp->builder->end_compunit_symtab (end_addr, section); + = ccp->builder->end_compunit_symtab (end_addr); delete ccp->builder; ccp->builder = nullptr; return result; @@ -1411,8 +1410,7 @@ ctf_psymtab::read_symtab (struct objfile *objfile) set_text_low (offset); set_text_high (offset + tsize); - compunit_symtab = ctf_end_compunit_symtab (this, offset + tsize, - SECT_OFF_TEXT (objfile)); + compunit_symtab = ctf_end_compunit_symtab (this, offset + tsize); /* Finish up the debug error message. */ if (info_verbose) |