]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
* dwarf2read.c (dwarf2_attr_with_cu): New function, renamed
authorDaniel Jacobowitz <drow@false.org>
Sun, 22 Feb 2004 23:04:57 +0000 (23:04 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 22 Feb 2004 23:04:57 +0000 (23:04 +0000)
commit3db03ca1ec4b4d359abf854cf8c2de90ac9fcf78
tree5a07f60a95ac787085875d9a2985794ed7325c27
parentc660c1dc94e5d5f79bc6b4c69944f97d16582939
* dwarf2read.c (dwarf2_attr_with_cu): New function, renamed
from dwarf2_attr.  Also return the compilation unit associated
with the attribute if we have followed a reference.  Complain
if we return a reference attribute and the caller does not want
the target compilation unit.
(dwarf2_attr): Call dwarf2_attr_with_cu.
(die_specification, dwarf2_extension): Also return a compilation
unit.
(follow_die_ref): Take attribute and compilation unit arguments.
Call dwarf2_get_ref_die_offset.  Also return the target
compilation unit.
(read_func_scope, read_structure_scope): Update calls to
die_specification.  Use the result.
(read_namespace): Update call to dwarf2_extension.
(namespace_name): Likewise.  Use the result.
(new_symbol): Call dwarf2_attr_with_cu to check for DIE type.
(die_type): Likewise.  Update call to follow_die_ref.  Use the
results.
(dwarf2_add_member_fn, read_structure_scope): Likewise for
DW_AT_containing_type.
(die_containing_type): Likewise.
(die_is_declaration): Likewise for DW_AT_specification.
gdb/ChangeLog.intercu
gdb/dwarf2read.c