* dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
authorDoug Evans <dje@google.com>
Sun, 12 Dec 2010 19:19:27 +0000 (19:19 +0000)
committerDoug Evans <dje@google.com>
Sun, 12 Dec 2010 19:19:27 +0000 (19:19 +0000)
commit7b9f3c509cbe8d15a29d79db7194f93d4e3b7ec2
tree73c4c8f317dacdbc06aa2d3cf7ad5f5d0564dc06
parent1583e7ea014158bb88f86f347001fe2bceb5514b
* dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
(dwarf2_per_cu_quick_data): Move definition down to "quick functions"
section.  Delete members lines full_names.  Rename read_lines to
no_file_data.
(quick_file_names): New struct.
(hash_file_name_entry, eq_file_name_entry): New functions.
(delete_file_name_entry, create_quick_file_names_table): New functions.
(dwarf2_read_index): Initialize quick_file_names_table.
(dw2_get_file_names): Renamed from dw2_require_line_header.
Return pointer to quick_file_names entry.  All callers updated.
(dw2_get_real_path): Renamed from dw2_require_full_path.
Replace per_cu arg with pointer to quick_file_names entry.
All callers updated.
(dw2_free_cached_file_names): New function.
(dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
(dwarf2_initialize_objfile): Initialize quick_file_names_table in
the OBJF_READNOW case.
(dwarf2_free_objfile): Rewrite freeing of quick file names tables.
gdb/ChangeLog
gdb/dwarf2read.c