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/dbxread.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/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index dc11f0b..36e744f 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -2331,8 +2331,7 @@ read_ofile_symtab (struct objfile *objfile, legacy_psymtab *pst) if (get_last_source_start_addr () > text_offset) set_last_source_start_addr (text_offset); - pst->compunit_symtab = end_compunit_symtab (text_offset + text_size, - SECT_OFF_TEXT (objfile)); + pst->compunit_symtab = end_compunit_symtab (text_offset + text_size); end_stabs (); @@ -2594,7 +2593,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name, patch_subfile_names (get_current_subfile (), name); break; /* Ignore repeated SOs. */ } - end_compunit_symtab (valu, SECT_OFF_TEXT (objfile)); + end_compunit_symtab (valu); end_stabs (); } |