]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Make some line_header methods const
authorTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:08 +0000 (09:28 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:15 +0000 (09:28 -0600)
commit8844c11b8bc1cfa70a63a8875e08345c96abecfe
tree0d179a74826a2d344353febd311591f9af2a7ac5
parentc90ec28ae44ebf72d57d58439d02fc5aab90f1f6
Make some line_header methods const

This changes a few line_header methods to be const.  In some cases, a
const overload is added.

gdb/ChangeLog
2020-03-26  Tom Tromey  <tom@tromey.com>

* dwarf2/line-header.h (struct line_header) <is_valid_file_index,
file_names_size, file_full_name, file_file_name>: Use const.
<file_name_at, file_names>: Add const overload.
* dwarf2/line-header.c (line_header::file_file_name)
(line_header::file_full_name): Update.
gdb/ChangeLog
gdb/dwarf2/line-header.c
gdb/dwarf2/line-header.h