Move last_source file to buildsym_compunit
authorTom Tromey <tom@tromey.com>
Sun, 20 May 2018 16:39:24 +0000 (10:39 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 14:55:15 +0000 (08:55 -0600)
commitc0015d4497e0057536b5ec7e0fed8f8bca07572e
tree14662f6a62d9be9971a2a5241ec257ffcd46f5d7
parente62cca7ccb9ea47d18a0812a2c27f00e5048367b
Move last_source file to buildsym_compunit

This moves the global last_source_file into buildsym_compunit.

gdb/ChangeLog
2018-07-16  Tom Tromey  <tom@tromey.com>

* buildsym.c (buildsym_compunit::buildsym_compunit): Add name
parameter.
(buildsym_compunit::set_last_source_file): New method.
<m_last_source_file>: New member.
(prepare_for_building): Remove "name" parameter.
(start_symtab, restart_symtab, reset_symtab_globals): Update.
(last_source_file): Remove.
(set_last_source_file, get_last_source_file): Update.
gdb/ChangeLog
gdb/buildsym.c