]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Move the subfile stack to buildsym_compunit
authorTom Tromey <tom@tromey.com>
Mon, 21 May 2018 02:48:44 +0000 (20:48 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 14:55:21 +0000 (08:55 -0600)
commit8419ee5331d5b3253d2bfe1a039f12a167292dfc
tree4189e39729bab4385610cf6e17bc5e9b1761feb7
parentccdac490bb3b568e88626afc84017c79e2d086e7
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.
gdb/ChangeLog
gdb/buildsym.c
gdb/buildsym.h