From 8419ee5331d5b3253d2bfe1a039f12a167292dfc Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 20 May 2018 20:48:44 -0600 Subject: Move the subfile stack to buildsym_compunit This moves the global subfile_stack to be a member of buildsym_compunit. It also change this to be a std::vector, which simplifies the code. gdb/ChangeLog 2018-07-16 Tom Tromey * buildsym.h (push_subfile, pop_subfile): Update declarations. * buildsym.c (struct buildsym_compunit) : New member. (struct subfile_stack): Remove. (subfile_stack): Remove. (push_subfile, pop_subfile, buildsym_init): Update. --- gdb/buildsym.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/buildsym.h') diff --git a/gdb/buildsym.h b/gdb/buildsym.h index d094345..b5ea63d 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -186,9 +186,9 @@ extern void start_subfile (const char *name); extern void patch_subfile_names (struct subfile *subfile, const char *name); -extern void push_subfile (void); +extern void push_subfile (); -extern char *pop_subfile (void); +extern const char *pop_subfile (); extern struct block *end_symtab_get_static_block (CORE_ADDR end_addr, int expandable, -- cgit v1.1