]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Move last_source_start_addr to buildsym_compunit
authorTom Tromey <tom@tromey.com>
Sun, 20 May 2018 17:01:37 +0000 (11:01 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 14:55:16 +0000 (08:55 -0600)
commit2c99ee5c4f44d52258fa176563cc6a4cfbf0069d
tree8c4cc533610f3262a43cf562d6bfae0b4b71f8e2
parent530fedbcbf61b6d74c76a8ba720fe29d98896831
Move last_source_start_addr to buildsym_compunit

This moves the global last_source_start_addr into buildsym_compunit,
adding some accessors as well.

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

* xcoffread.c (aix_process_linenos, complete_symtab): Update.
* dbxread.c (read_ofile_symtab): Update.
* coffread.c (coff_start_symtab, coff_end_symtab): Update.
* buildsym.h (last_source_start_addr): Remove.
(set_last_source_start_addr, get_last_source_start_addr):
Declare.
* buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
parameter.
(struct buildsym_compunit) <m_last_source_start_addr>: New
member.
(prepare_for_building): Remove start_addr parameter.
(start_symtab, restart_symtab, end_symtab_get_static_block)
(end_symtab_with_blockvector): Update.
(set_last_source_start_addr, get_last_source_start_addr): New
functions.
gdb/ChangeLog
gdb/buildsym.c
gdb/buildsym.h
gdb/coffread.c
gdb/dbxread.c
gdb/xcoffread.c