diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-03-28 18:17:17 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-04 12:58:07 -0400 |
commit | 59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5 (patch) | |
tree | 119727391fc7c5e95ace6211cac153fcbfb93876 /gdb/dbxread.c | |
parent | 056b6f879d0b958d470b9ed1df19ec68daf77467 (diff) | |
download | gdb-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.zip gdb-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.tar.gz gdb-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.tar.bz2 |
gdb: rename start_symtab/end_symtab to start_compunit_symtab/end_compunit_symtab
It's a bit confusing because we have both "compunit_symtab" and "symtab"
types, and many methods and functions containing "start_symtab" or
"end_symtab", which actually deal with compunit_symtabs. I believe this
comes from the time before compunit_symtab was introduced, where
symtab did the job of both.
Rename everything I found containing start_symtab or end_symtab to use
start_compunit_symtab or end_compunit_symtab.
Change-Id: If3849b156f6433640173085ad479b6a0b085ade2
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 259860e..49bcebd 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -2318,8 +2318,8 @@ 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_symtab (text_offset + text_size, - SECT_OFF_TEXT (objfile)); + pst->compunit_symtab = end_compunit_symtab (text_offset + text_size, + SECT_OFF_TEXT (objfile)); end_stabs (); @@ -2367,7 +2367,7 @@ cp_set_block_scope (const struct symbol *symbol, the pst->section_offsets. All symbols that refer to memory locations need to be offset by these amounts. OBJFILE is the object file from which we are reading symbols. It - is used in end_symtab. + is used in end_compunit_symtab. LANGUAGE is the language of the symtab. */ @@ -2575,7 +2575,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_symtab (valu, SECT_OFF_TEXT (objfile)); + end_compunit_symtab (valu, SECT_OFF_TEXT (objfile)); end_stabs (); } @@ -2587,7 +2587,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name, function_start_offset = 0; start_stabs (); - start_symtab (objfile, name, NULL, valu, language); + start_compunit_symtab (objfile, name, NULL, valu, language); record_debugformat ("stabs"); break; |