* dwarf2read.c (stmt_list_hash): New struct.
authorDoug Evans <dje@google.com>
Mon, 16 Jul 2012 03:22:40 +0000 (03:22 +0000)
committerDoug Evans <dje@google.com>
Mon, 16 Jul 2012 03:22:40 +0000 (03:22 +0000)
commit094b34ac0b0bca39ecc6b7fd8a97934695079729
tree4d057f8dee8319199724362980e900373324e5c2
parent2908cac625ad01a06f4193761a1b4d2f3779b923
* dwarf2read.c (stmt_list_hash): New struct.
(type_unit_group): Embed "per_cu" member, remove pointer.
New union member "t", move member "tus" into it, all uses updated.
New member "hash", replaces member "line_offset, all uses updated.
(quick_file_names): Replace member "offset" with "hash", all uses
updated.
(hash_stmt_list_entry, eq_stmt_list_entry): New functions.
(hash_file_name_entry, eq_file_name_entry): Call them.
(hash_type_unit_group, eq_type_unit_group): Ditto.
(dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
(dw2_get_file_names_reader): Fix file name table calculation for TUs.
(dw2_get_file_names): Update.
(create_type_unit_group): Replace "per_cu" arg with "cu".
All callers updated.  Fix "quick" (.gdb_index) handling.
(get_type_unit_group): Replace "per_cu" arg with "cu".
All callers updated.
(build_type_unit_groups): Don't reset tu_stats.
gdb/ChangeLog
gdb/dwarf2read.c