summaryrefslogtreecommitdiff
path: root/gdb/buildsym.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-20 20:48:44 -0600
committerTom Tromey <tom@tromey.com>2018-07-16 08:55:21 -0600
commit8419ee5331d5b3253d2bfe1a039f12a167292dfc (patch)
tree4189e39729bab4385610cf6e17bc5e9b1761feb7 /gdb/buildsym.h
parentccdac490bb3b568e88626afc84017c79e2d086e7 (diff)
downloadbinutils-gdb-8419ee5331d5b3253d2bfe1a039f12a167292dfc.tar.gz
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 <tom@tromey.com> * buildsym.h (push_subfile, pop_subfile): Update declarations. * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New member. (struct subfile_stack): Remove. (subfile_stack): Remove. (push_subfile, pop_subfile, buildsym_init): Update.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r--gdb/buildsym.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index d0943456cda..b5ea63d3f48 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,