aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-08-19 11:50:44 -0600
committerTom Tromey <tom@tromey.com>2019-03-06 14:04:44 -0700
commite2a035485a80651a5dc1711fee5a811e41ab131b (patch)
tree2251bab83082ab097d40ed205e0809fb5be1d185 /gdb/stabsread.h
parentb7e60d85da12a1819671473db8550c9f076e8f38 (diff)
downloadbinutils-e2a035485a80651a5dc1711fee5a811e41ab131b.zip
binutils-e2a035485a80651a5dc1711fee5a811e41ab131b.tar.gz
binutils-e2a035485a80651a5dc1711fee5a811e41ab131b.tar.bz2
Remove cleanups from coffread.c
This removes the remaining cleanups from coffread.c. Tested by the buildbot and also some manual testing. This version includes the fix provided by Joel. gdb/ChangeLog 2019-03-06 Joel Brobecker <brobecker@adacore.com> Tom Tromey <tom@tromey.com> * stabsread.h (struct stab_section_list): Remove. (coffstab_build_psymtabs): Update. * dbxread.c (symbuf_sections): Now a std::vector. (sect_idx): New global. (fill_symbuf): Update. (coffstab_build_psymtabs): Change type of stabsects parameter. Update. * coffread.c (struct coff_symfile_info) <stabsects>: Now a std::vector. (linetab, linetab_offset, linetab_size, stringtab): Move earlier. (coff_locate_sections): Update. (coff_symfile_read): Remove cleanups. Update. (init_stringtab): Add storage parameter. (free_stringtab, free_stringtab_cleanup): Remove. (init_lineno): Add storage parameter. (free_linetab, free_linetab_cleanup): Remove.
Diffstat (limited to 'gdb/stabsread.h')
-rw-r--r--gdb/stabsread.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/gdb/stabsread.h b/gdb/stabsread.h
index fc989bc..f692808 100644
--- a/gdb/stabsread.h
+++ b/gdb/stabsread.h
@@ -167,18 +167,6 @@ extern void end_stabs (void);
extern void finish_global_stabs (struct objfile *objfile);
-/* COFF files can have multiple .stab sections, if they are linked
- using --split-by-reloc. This linked list is used to pass the
- information into the functions in dbxread.c. */
-struct stab_section_list
- {
- /* Next in list. */
- struct stab_section_list *next;
-
- /* Stab section. */
- asection *section;
- };
-
/* Functions exported by dbxread.c. These are not in stabsread.c because
they are only used by some stabs readers. */
@@ -201,7 +189,7 @@ extern void elfstab_build_psymtabs (struct objfile *objfile,
extern void coffstab_build_psymtabs
(struct objfile *objfile,
CORE_ADDR textaddr, unsigned int textsize,
- struct stab_section_list *stabs,
+ const std::vector<asection *> &stabs,
file_ptr stabstroffset, unsigned int stabstrsize);
extern void stabsect_build_psymtabs (struct objfile *objfile, char *stab_name,